$_SESSION as $key=>$value
| From: | Daniel J. Rychlik | Date: | Thu, 12 Jun 2003 21:39:51 +0000 |
| Subject: | $_SESSION as $key=>$value | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151317@lists.php.net to get a copy of this message | ||
Is this valid to iterate over a form variables.?
foreach ($_SESSION as $key=>$value)
and another question, do I need this <form action="scripts/process.php"
method="post"> in my form?
Im really struggling with $_SESSION. Im trying to program smarter and make friendlier applications.
Ive submitted several emails dealing with this function and I apologize for beating a dead horse, so
to speak.
I have a form with a few form fields. Im working on an error function that will take the data that
was entered and pass it back to the form so that the user will not have to input the data again. If
an error is found I use the header function to go back to the form. Im having trouble with passing
back the data. Do I in my form setup a $_GET or should I use the $_SESSION to call it. I am also
going to setup a few css styles that highlight which field was found in error.
Again, I apologize for my lack of vision and maybe a spark of light will go off, and I will be able
to make some connections to get this done.
Dan