|
-
Mar 7th, 2002, 10:51 PM
#1
Thread Starter
Fanatic Member
shoving variables from one page to another
how can i shove a string variable from one page to the other withough putting it in the address. sending it invisably without assigning cookies.
???
thanx for any help.
ME!
-
Mar 8th, 2002, 06:55 AM
#2
Addicted Member
You could pass it through a HIDDEN field
<input type='hidden' name='theName' value='<?echo($someVal);?>'>
-
Mar 8th, 2002, 10:48 AM
#3
or if your other pages are in the same .php file
-
Mar 8th, 2002, 11:14 AM
#4
PowerPoster
hmm, how about writing the value to a file, then reading it in the next php file
or
use sessions! which is basically the same thing
-
Mar 11th, 2002, 02:38 AM
#5
Thread Starter
Fanatic Member
Originally posted by chrisjk
hmm, how about writing the value to a file, then reading it in the next php file
or
use sessions! which is basically the same thing
Explain pls ? sounds like the solution I need
-
Mar 11th, 2002, 09:30 AM
#6
PowerPoster
check out sessions here http://www.php.net/manual/en/ref.session.php
they use cookies but only to store the session id, not the actual string. If the user has disabled cookies, then it will put the session id in the URL, like http://www.somedomain.com/page.php?p...4723t48yg23jh3 which it will automatically append
If you don't want to use sessions then as I said just write the string to a flat file in the first script, then read the same file back again in the second script. The user will never know it's happening
Check out file handling stuff here http://www.php.net/manual/en/ref.filesystem.php
-
Mar 11th, 2002, 07:04 PM
#7
Thread Starter
Fanatic Member
thanx chrisjk, i'll look at that as soon as i have the chance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|