Forum Moderators: buckworks
I have some PHP code that generates the following form:
<form action="http://www.paypal.com/cgi-bin/webscr" method="post" name="checkout">
<input type="hidden" name="cmd" value="_cart"><input type="hidden" name="business" value="myemail@mydomain.com"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="uploade" value="1"><input type="hidden" name="item_name_1" value="Pants">
<input type="hidden" name="item_number_1" value="1234567">
<input type="hidden" name="ammount_1" value="12.5">
<input type="hidden" name="quantity_1" value="10">
<input type="hidden" name="shipping_1" value="1">
<input type="hidden" name="shipping2_1" value="0.5">
<input type="hidden" name="handling_1" value="2">
<input type="hidden" name="item_name_2" value="shirt">
<input type="hidden" name="item_number_2" value="1234567890">
<input type="hidden" name="ammount_2" value="45">
<input type="hidden" name="quantity_2" value="3">
<input type="hidden" name="shipping_2" value="1">
<input type="hidden" name="shipping2_2" value="0.5">
<input type="hidden" name="handling_2" value="1">
</form><script language="javascript">
<!--
document.checkout.submit();
//-->
</script>
The script is there to make it submit instantly (they click checkout, and it has to generate the form to submit to paypal first, so I don't want them to have to click twice). The problem is that when it submits, I get an error from paypal that just says "we have detected an error in your form. Please contact your webmaster". I am the webmaster, and it gives no diagnostics information, no actual error information, no dumps, no nothing, so I am at a loss. I have tried everything that I can think of. Maybe one of you could help me out ... Do you see anything wrong with the form? Any ideas?
Thank you for any help that you can offer,
Me
However, now I have another problem. I get an error saying "you must access this page in secure mode". I know that doing SSL connections through php (or establishing an ssl connection in html) may be beyond the scope of this forum, but it anyone has suggestions I am open.
Peace,
Me