PDA

View Full Version : Saving values of fields



toplisek
01-23-2006, 10:30 AM
I have form and code at the top:


<form action="<?php echo $PHP_SELF; ?>" method="post" >


When there is shown error above form, fields are cleared.

1. How to do that it will be in the field values as user gives
2. How to do clear function with image if user would like to clear all fields


Need help.

Twey
01-23-2006, 11:01 AM
I do not understand your first question.
2. How to do clear function with image if user would like to clear all fields
<img src="myimage.png" onclick="this.form.reset();" />
<noscript>
<input type="reset"/>
</noscript>

toplisek
01-23-2006, 11:34 AM
I need code that when user clicks on my image (e.g. image1.gif)
it will clear all fields in form. User has possibility not to clear each field, just easy all fields.

I do not know what is wrong, but please advise why it does not work your code?

Twey
01-23-2006, 11:41 AM
This is the purpose of the code I have posted.

toplisek
01-23-2006, 11:56 AM
Oh Yes, second question, sorry.

Do you know why it does not work?

I have put the following code:

<img src="image1.gif" onclick="this.form.reset();" />
<noscript>
<input type="reset"/>
</noscript>