From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> > I am making use of a php form to add company details to a MySQL > Database. Before I add the form variables I am checking to see if the > SAME company name exists in the DB. If the same company exists, then a > notification is provided. In between this , the variables that were > entered on the form are LOST. Is there anyway I can store the variables > so that if a duplicate record was found to be present, then the forms > variables are stored and NOT LOST ?? > > Any suggestions would be greatly appreciated ! Thanks in advance
How do you display the form again when there is a "notification"? Something as simple as: <input type="text" name="some_name" value="<? echo htmlentities($_POST['some_name']); ?>"> will (safely) "remember" POSTed variables when you show the form again. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php