I have two forms on a page. Each calls some javascript code. One goes to paypal and one that goes to a send mail routine. How can I distinguish between the two so they don’t obstruct with each other?
Contact form descriptor:
<form action='sendMail.php' method='post' id="contact-form" class="form-horizontal" >
<fieldset>
…
Paypal form descriptor:
<div id="donationForm">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
I hope that makes sense since it seems that my application does not know what to do when the submit button is clicked?
I was also thinking that I could name my button “submit-contact” , instead of “submit” but this does not seem to work.