PDA

View Full Version : Need help with submit link for a contact form


skc56
05-22-2009, 06:10 PM
This is my first time working with javascript. I am customizing a template wth a contact form and I can't get it to send the email.

This code came with the template and I attempted to fill-in the blanks.
Can someone please tell me if there is anything wrong here? I am not sure if the issue is with this or the php code.

here's what I have for the submit link

<a href="success.html" class="link" onclick="document.getElementById('form').submit()">submit</a>

Thanks.
skc56

abduraooft
05-22-2009, 06:23 PM
Can someone please tell me if there is anything wrong here? I am not sure if the issue is with this or the php code. It's better to explain the issue that you are facing first. Why do you need a link to submit your form? What's the purpose of href="success.html" ?

skc56
05-22-2009, 06:31 PM
That's the way it came in the template. The only thing I have been ablet o figure out is that it will take the vistor to another page once they submit the form. Although with or without the link to another page I can't get it to work.