How to send a value to another php page?
how to get value of $uid in page2.php?
I don't want to use
this is why I redirect page 1 to page 2.
I hope uid is hidden from user on web address box.
Last edited by html20009876; 08-04-2009 at 11:46 PM.
the only way to hide transmitted vars from the URL is to send them via post instead of get.
calling the var in php would then work via the post var
<form action="page1.php" method="post">
<input type="text" name="uid"/>
but why dont you want to use the get thing?
if u just use the page1 to redirect it will never be displayed in the browsers address box
"post" and _GET?
boy, before you become a teacher, you should complete your 12 years study first.
I am sorry for mistyping that
i just copied an forgot to change
i just wanted to help
and consider your reaction on this little mistake as quite unfriendly
Come on guys, what about sessions?
simply start the session using the function session_start() and then set your session like
for example ......page 1:
Obviously, i recommend validating the first GET before using any of this, and also validate all session values before using them, never know what your user might of done to them.
i just focused on the transmitting part of the problem and forgot about handling the data at all
definitely as session would be the way to store $uid before redirecting.
Yeah definatly, i just thought i would drop the validation stuff in there just incase you had just started out at PHP, or even programming for that matter. As long as you have it all in control =)
Nice response, remind me to never bother posting anything helpful in one of your threads... It's pretty funny that you don't know enough to answer this for yourself, yet you are happy to mock people who do know more and are trying to help you out.
Originally Posted by html20009876
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)