I have been trying to make a form, call another form and submit itself, for making calls to payment gateways like paypal for example, and am drawing a blank so far.
What I do now
Usually, you have a payment form and a submit button, and the submit button will do the form action, which is calling the payment gateway. For example.
Code: Select all
<form action='https://www.paypal.com/cgi-bin/webscr' method='post' name='frm_pay'>
<input type='hidden' name='cmd' value='_xclick'>
<input type='hidden' name='business' value='someone2@yahoo.com'>
<input type='hidden' name='item_name' value='Test Item'>
<input type='hidden' name='item_number' value='ItemNumber'>
<input type='text' name='amount' value='100.00'>
<input type='text' name='no_note' value='1'>
<input type='' name='currency_code' value='USD'>
</form>What I want to do
Code: Select all
<form action='http://mysite/form2.php' method='post' name='frm_pay'>
<input type='text' name='amount' value='100.00'>
<input type='text' name='no_note' value='1'>
</form>Anyone implemented such a scheme successfully?
Thanx in advance
Perdi