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!
Printable View
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!
You could pass it through a HIDDEN field
<input type='hidden' name='theName' value='<?echo($someVal);?>'>
or if your other pages are in the same .php file
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 ;)Quote:
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
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
thanx chrisjk, i'll look at that as soon as i have the chance :)