Script into a function in the same script
Hey guys, i have two variables, one from a form the user enters in and one that already exists in the script.
I need to get both of these into a function in the same script or to another page, any reccomendations?
DocStly: $_SESSION
Chambrln, how do i load variables from a form into session?
I'm having a lot of trouble with that on post you set them
the form posts to your script
and the session will stay in the whole time throughout the scripts?
you check to see if the post is set then $_SESSION['formfield'] = $_POST['formfield'];
until you unset it or kill the session or they close their browser or or or.
well do you know how to load a variable from a form into the current page?
because if i could do that it would be much easier
you can't load them until you actually post the form
once you post though you can post to the same page
ehhehe
Well i want it in the same script im ean
yea you can do that
i want to be able to get it from the form and then 10 lines down use it in a function