I have a save.php page that will accept an $id from an edit.php form and change the information for the current record. If the $id is not passed the save.php is supposed to create a new record with a new unique $id.
I am able to get the information to save correctly but everytime I pass no $id variable to my edit.php?id= page all of the fields in the form are filled with error HTML like:
<br /><b>Notice</b>: Undefined variable: id_name in <b>/var/www/html/edit.php</b> on line <b>96</b><br />
I can clear out the HTML errors and replace it with good info and it will save correctly.
I'm know it's supposed to do this, I just need help figuring out how to automatically clear the form so all the HTML errors are not displayed.
Any help would be great!
Digit




Bookmarks