Jump to content


Photo

Error: "Please enter an amount greater than zero"


  • This topic is locked This topic is locked
5 replies to this topic

#1 tomleim

tomleim

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 19 November 2005 - 02:44 PM

I've searched the forums for a solution to this with no success. I've created a form to collect donations and it works fine in all browsers except Safari, which produces the error "Please enter an amount greater than zero."

Here's the code:
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick"/>
<input type="hidden" name="business" value="donate@yeah-berkeley.org"/>
<input type="hidden" name="return" value="http://www.yeah-berkeley.org/thanks.php"/>
<input type="hidden" name="item_name" value="Program Support"/>
<input type="hidden" name="no_shipping" value="1"/>
<input type="hidden" name="rm" value="1"/>
<input type="hidden" name="cancel_return" value="http://www.yeah-berkeley.org"/>
<input type="hidden" name="no_note" value="1"/>
<input type="hidden" name="page_style" value="primary"/>
<input type="image" src="images/donate.gif" alt="Donate Securely"/>
</form>

Can anyone spot the problem here?
Thanks for looking.

#2 Andrew Chang

Andrew Chang

    Average Member

  • Members
  • 738 posts

Posted 19 November 2005 - 04:06 PM

add a line

<input type="hidden" name="amount" value=""/>

Andrew W. Chang
President
Scorpion Systems
Winner PayPal® Star Developer Award 2005
AndrewC@scorpionsystems.net
Secure Web Hosting, Web Development & Programming
http://www.scorpionsystems.net
Detailed Information
http://paypaldev.org...p?TOPIC_ID=7432

Phone: 631.789.5785


#3 tomleim

tomleim

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 19 November 2005 - 05:17 PM

Thanks for your reply, Andrew. I added the line
<input type="hidden" name="amount" value=""/>
and it does no harm but it doesn't solve the problem either. From reading other posts I get the impression that if some restricted character is encountered in processing the form this error will appear. But I don't see anything unusual in my form, so I'm not sure what might be causing Safari to send a bad character.

Anyone else have suggestions?

#4 tomleim

tomleim

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 22 November 2005 - 02:38 PM

I solved this by prompting for the donation amount on my site before passing the form to PayPal. I would have preferred to have the user enter the amount on PayPal's site, but this doesn't seem to be possible using all browsers. Oh well.

#5 hcd2

hcd2

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 19 December 2005 - 05:17 PM

I am experiencing the same problem in FIREFOX on http://www.shareunit...ult.aspx?id=82. It works in IE, but returns, "please enter an amount greater than zero," in FF.

code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/> <input onclick="document.forms[0].action='https://www.paypal.com/cgi-bin/webscr';" type="image" alt="Make payments with PayPal - it's fast, free and secure!" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit"/> <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----...key...-----END PKCS7-----"/>
</form>

Am I missing something?

Thank you.


#6 fredy

fredy

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 11 January 2006 - 03:27 PM

I was getting the same "greater than zero" error message as the OP from both MSIE and Firefox on a Windows XP machine, even though the same form worked fine from Firefox and Safari on a Mac and also worked fine from Windows XP for some other people.

When I cleared cache and cookies in Firefox, the form started working correctly. (Clearing cookies alone might have worked -- I don't know.) The form still did not work in MSIE on the same machine. When I cleared cookies in MSIE the form started working there too.

I have not found any way to work around this problem other than suggesting to users that they clear their cookies if they encounter the problem. Bogus.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users