Using a form....

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Currently the form is filled and the data entered into a database. Then
the form is displayed again, however the data entered on the firm prior
is still there. How do I get the form to "start clean" with empty fields?


Re: Using a form....

Scripsit dba:

Quoted text here. Click to load it

By using an appropriate form handler that sends back the response you
want to send.

Jukka K. Korpela ("Yucca")

Re: Using a form....

Again, do not understand.

Jukka K. Korpela wrote:
Quoted text here. Click to load it

Re: Using a form....

Quoted text here. Click to load it

My "Form_Carmen.php" contains:

<form name="myform" action="Mail-Carmen.php" METHOD="POST"
onSubmit="return checkme(this);">

The action will start another page "Mail-Carmen.php"  which could
create another page.... with the result of the operation.

You can also combine to have an "onload" mechanism to recall
"Form_Carmen.php" with a parameter "succes" or "fail" - so this form
could have also the information about the previous transmit of the
form - (the new form will have all zones cleaned)

Site Timeline