Hi Guys,
I'm having trouble with the form reset button in my php script.
The form submits to it's self in the same page.
The php script has error handling i.e
if(empty($name)){
$error[] = " Enter Your Name";}
The Problem i have is when the form is submitted it checks the errors and the value (if it has passed error handling) is echoed in the form so the user doesn't have to enter all the infomation again. But the reset button doesn't work after the initial submit button. I have looked arounf for the past couple of hours and found nothing to help. I was thinking of calling a js onClick event to unset the fields but i'm unsure of calling php within a js script. There will probably be a simple solution but my head is mashed!!!
Cheers...