I have a php form and when I try to send it with a link it doesn't validate the areas that need to be validated. It validates fine with a submit button but I don't want to use a submit button.
Here's my Submit link code:
<a class="button" href="javascript:document.contact_form.submit()"><span>Submit</span>
Here's the first bit of the form code:
<form id="contact_form" name="contact_form" method="post" action="to_contact_table.php">
my validation is php and my submit "button" / link is using javascript.
first answer didn't work
Is there a way to submit a form using a php link instead of a javascript one?
Here's my Submit link code:
<a class="button" href="javascript:document.contact_form.submit()"><span>Submit</span>
Here's the first bit of the form code:
<form id="contact_form" name="contact_form" method="post" action="to_contact_table.php">
my validation is php and my submit "button" / link is using javascript.
first answer didn't work
Is there a way to submit a form using a php link instead of a javascript one?