too many forms, what should I do?

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Hi

I created an Subscribe button on the PayPal website. This button I want to
use on my website so that people must pay to see hidden content. On the
PayPal site I got this markup:

<form action="<URL>" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="xxx">
<input type="image" src="yyybtn_subscribeCC_LG.gif" border="0" name="submit"
alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="uuuu/pixel.gif" width="1" height="1">
</form>

This won't work in asp.net because it already contain a form. So I'm looking
for an workaround here... any suggestions?
Like this on:
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="xxxx"
PostBackUrl="<URL>" />
but this workaround fails, it doesn't contain the information in the hidden
fields above...

any suggestions?
 
Hi

I created an Subscribe button on the PayPal website. This button I want to
use on my website so that people must pay to see hidden content. On the
PayPal site I got this markup:

<form action="<URL>" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="xxx">
<input type="image" src="yyybtn_subscribeCC_LG.gif" border="0" name="submit"
alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="uuuu/pixel.gif" width="1" height="1">
</form>

This won't work in asp.net because it already contain a form. So I'm looking
for an workaround here... any suggestions?
Like this on:
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="xxxx"
PostBackUrl="<URL>" />
but this workaround fails, it doesn't contain the information in the hidden
fields above...

any suggestions?

Do you need "ASP.NET form" there?

Regarding PayPal link: you can use a "Buy Now Email Payment Link",
e.g.

https://www.paypal.com/cgibin/
webscr?cmd=_xclick&[email protected]&item_name=Hot
Sauce-12+oz.+Bottle&item_number=12345&amount=5%2e95&currency_code=USD

read more at https://www.paypal.com/en_US/ebook/PP_NVPAPI_DeveloperGuide/Appx_SDKDotNET.html
 
Back
Top