Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: html contact form
05-17-2012, 02:56 AM #1
- Join Date
- May 2012
- Thanked 0 Times in 0 Posts
html contact form
I have downloaded this template and I am almost done but I ran into a problem with the contact form.
the only kind of contact form i have seen is when you do <form action="script.php">
but this template has this weird thing, I dont understand how it works. Here is a picture:
how does the script send emails when the form has no action?
I am just wondering would I break anything if I change this to:
In other words, put form action at the top, and get rid of the getelementsbyid at the bottom?
Last edited by mike316; 05-17-2012 at 02:59 AM.
05-17-2012, 01:07 PM #2
You are correct that you'll need the action attribute to process the form. You'll also need the method attribute eg
I haven't looked at the attached files, but if there's CSS attached to this form, then you're going to need to re-add
class="button1"to the submit button. Also, as it is now a button you'll need to add a couple of extra lines to get rid of the default button style.
Note you also missed theCode:background: transparent; border: none;
valueattribute from the submit button.