Re: Form variables lost when duplicate records are found !

From: Date: Tue, 02 Sep 2003 20:56:22 +0000
Subject: Re: Form variables lost when duplicate records are found !
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161486@lists.php.net to get a copy of this message
From: "Pushpinder Singh Garcha" <pgarcha@adelphia.net> > 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...

« previous php.general (#161486) next »