471,337 Members | 1,083 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

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 2342
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.

Similar topics

2 posts views Thread by Richard | last post: by
10 posts views Thread by Noozer | last post: by
1 post views Thread by | last post: by
4 posts views Thread by moondaddy | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.