I assume that you have <input type="text" name="field1" value="<?= 
$field1 ?>" /> or some variation thereof. In that case, just set $field1 
= "" after you save the record, or remove the value="" statement altogether.


Rodrigo Peres wrote:

>Hi list,
>I have PHP code to insert the result of a form into mysql. When I nedd to
>made an update, I pass an "id" in the url and use it to make the update
>query. The problem is after I click in the update button (input submit) my
>page refresh and came back in the same state, to see the changes I need to
>type in the url again with the parameter?? why?? There's a way to avoid this
>and get a new blank form page after the update?
>ps: I've stored the "id" in a input type hidden, so I could click the button
>and still have the id
>Thank's in advance
>Rodrigo Peres

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to