Re: silly question
| From: | Mike Eheler | Date: | Wed, 14 Nov 2001 18:20:43 +0000 |
| Subject: | Re: silly question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74627@lists.php.net to get a copy of this message | ||
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.
Mike
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