The approach of using $_GET variables would just make the URL very very long, like imagine having to pass close to 33 variables on the form. The other option wud be to use $_SESSION array to store the form variables.
Does anyone have nay other suggestion.? Thanks in advance ! /pS On Tuesday, September 2, 2003, at 05:13 PM, Matt Matijevich wrote: > [snip] > when the user comes back to the "add_new.php" > [/snip] > > I would use session vars in this case. > > You could also use get variables. > > Say the company name is in the database and you have to redirect back > to add_new.php, in your header call > you could say something like: > > header("Location: > add_new.php?field1=$_POST["field1"]&field2=$_POST["field2"]") > > but I would just use session vars. > >>>> Pushpinder Singh Garcha <[EMAIL PROTECTED]> 09/02/03 04:03PM >>>> > This is the way it works.... > > there is a table with "company name" as the primary key. > > 1. A logged in User enters details of the company he/she wants to ad > > to to the MySQL DB. This form is embedded in > "add_new.php" which call add_new_result.php as a POST method. > > 2. if the company name exists in the DB the user is alerted and and > asked to choose a different company name. > > Now my question is , when the user comes back to the "add_new.php" > page he looses all the data that he had entered. > I hope this makes it clear. > > Thanks again > --pS > > > > On Tuesday, September 2, 2003, at 04:51 PM, Matt Matijevich wrote: > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php