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

Reply via email to