Hi all
My knowledge of asp is basic.
I need to have two asp forms that work simultaneously one that emails the users input, the other to send you to paypal. Ifound the below script whilst searching for help.
The script is great and does what I want with one problem some reason I am getting two identical emails.
I would be most grateful for any assistance on this, it is driving me mad or even a better way of doing it without having to press two submit buttons.
<<A href="mailto:%@LANGUAGE="VBSCRIPT">%@LANGUAGE="VBS CRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<script>
function submitallforms() {
setTimeout('document.forms[0].submit()',100);
setTimeout('document.forms[1].submit()',200);
setTimeout('document.forms[2].submit()',300);
// End -->
</script>
</head>
<body>
<form action= "email.asp" method="post">
<p>Email Address: <input name="email" type="text" id="email" size="50"></p>
<p>Question: (maximum of 250 characters) <br>
<textarea name="question" cols="60" rows="10" id="question"></textarea></p>
<p align="right">
<input type="reset" name="Reset" value="Reset The Form">
<input type="submit" value="Submit Your Question" onclick="submitallforms();"></p>
</form>
<form action="
https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="email address goes here">
<input type="hidden" name="item_name" value="name of item here">
<input type="hidden" name="amount" value="10.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="page to go to once paid">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="bn" value="PP-BuyNowBF">
</form>
</body>
</html>