I having a problem with my code every time I click the paypal button it just post the information in my URL but do not redirect to paypal.
Here's my code. I can't post it since it is too long.
Thanks in advance
I having a problem with my code every time I click the paypal button it just post the information in my URL but do not redirect to paypal.
Here's my code. I can't post it since it is too long.
Thanks in advance
There seems to be a second <form>
on your page. Which has the Update button. I'm guessing you're submitting the empty form?
Make sure that your form looks like this:
<form action="toPayPal">
/* fields here */
<input type="button" value="Click me!" />
</form>
and not:
<form action="toPayPal">
/* fields here */
</form>
<form>
<input type="button" value="Click me!" />
</form>
Because in the latter case you're submitting an empty form. You can't split up forms like this.