too many forms, what should I do?

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?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top