468,106 Members | 1,503 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,106 developers. It's quick & easy.

Passing data values from one html page to another using javascript

2
Hii everybody,

here is my question
I have values(for ex-username and password) in one html page. so after enters the values and clicks the submit button i am able to forward to next html page " action" in the form tag, but how to display a message in the 2nd page like.... therefore your username is:..........( the value he submitted in the 1st html page) using javascript or html.


Thanks in advance...
Jul 28 '07 #1
1 2261
Csanád
17
Hi,

I assume the method you use in your form is method="POST" . Something like this:

<form action="next_html_page.html" method="POST">

If so, use the $_POST[ ] superglobal on the next_html_page to access the ex-username and password from the first html page:

$ex-username = $_POST["put the name value for ex-username here"]
$password = $_POST["put the name value for password here"]

Best,

Csanád

Hii everybody,

here is my question
I have values(for ex-username and password) in one html page. so after enters the values and clicks the submit button i am able to forward to next html page " action" in the form tag, but how to display a message in the 2nd page like.... therefore your username is:..........( the value he submitted in the 1st html page) using javascript or html.


Thanks in advance...
Jul 29 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.