hii, I made simple form.Now i have 2 image buttons on it. CLEAR & SUBMIT Now i am confused, how to use this button. i mean i want clear to clear all form to default and submit button to send details to my email? How do i do it? i mean what tags or attributes i will use for both buttons.I want the button to email me the data directly. Thanks -Sudarshan bhat
<input type="reset" value="Clear" /> is the code for your reset button To send the email you need some server side code such as .Net (or if you must PHP) that collects the form data and sends it as an email.
Guys thanks for the help.I posted it on php forum and they helped me.Thanks the reset button also worked..
You might be better off using a javascript. http://www.dynamicdrive.com/dynamicindex16/index.html Has some very useful form effects too. Cheers Notting
Which won't do a damn bit of good if the person using the form disables JavaScript in their browser or is using a browser which doesn't support it. On average, the only thing you should ever use JavaScript for when it comes to forms is to pre-validate form input data or to enhance the user experience of the form by making it easier to present or interact with the form controls or content already hard-coded into the HTML (which should be visible when scripting is disabled or not supported).