Forum Moderators: buckworks

Message Too Old, No Replies

PayPal fun and games... HELP!

Help with my paypal form

         

FancyPants

3:43 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



Hello,

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

IanKelley

7:04 pm on Jan 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<input type="hidden" name="uploade" value="1">
_____________________________^^

Haven't made a form for paypal in a while so I don't know if 'upload' is one of theirs or yours?

FancyPants

7:24 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



Well, I feel like an ass. I guess it helps if you spell things correctly....

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

IanKelley

7:34 pm on Jan 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



They just mean you have to use https:// in the url instead of html://

FancyPants

7:47 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



Cool!

Thank you for all your help!

Deewebs

8:34 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



They just mean you have to use https:// in the url instead of html://

Or even http:// :)