Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass variables from one page to another?

Status
Not open for further replies.

Naits

Programmer
Oct 10, 2001
90
0
0
NO
How can I pass an variable to a page to an other? without getting the varible displayd in the adressbar...

Thanks! __________________
Visit my homepage
.: Game universE :.
 
If you don't want data displayed in the address bar, use "method=POST" in your form tag.

If you want to preserve data from one form to another, you have many options. Here's two:

1. When the CGI that parses the first page produces the HTML that is the second page, have it include the data in "type=hidden" form fields.

2. Use session variables. ______________________________________________________________________
Perfection in engineering does not happen when there is nothing more to add.
Rather it happens when there is nothing more to take away.
 
I knew about the &quot;method=post&quot; thing... But I ment just a variable not a <form> variable.

I'l give the session thing a try... Any good tutorials on sessions? __________________
Visit my homepage
.: Game universE :.
 
Sorry, I meant to link this thread:
thread434-293292

Read my post at the bottom of the page. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top