kparish Posted August 27, 2007 Share Posted August 27, 2007 Hello all, I am new to PHP and have searched these forums and numerous other references, I even bought the book Beginning PHP and MySQL 5 by apress. My question is: I am trying to create a form that will autofill variables into the buy it now button. Example Page 1: Choose your game o Silkroad - SRO o Heroes Online - HO o Knights Online - KO Choose Amount o 10 mil - $7.00 o 20 mil - $13.00 o 30 mil - $18.00 these will have a values like Game name is G1 value is SRO or HO or KO. Amount name is A1 with a value of 7.00 or 13.00 or 18.00. they will click submit, I would like it to automatically fill in the values on a payment system like with moneybookers payment: <form method="post" target="_blank" action="https://www.moneybookers.com/app/payment.pl"> <input type="hidden" value="[email protected]" name="pay_to_email"> <input type="hidden" value="[email protected]" name="status_url"> <input type="hidden" value="EN" name="language"> <input type="hidden" value="$A1" name="amount"> <-- this is where the amount would go <input type="hidden" value="USD" name="currency"> <input type="hidden" value="$G1" name="description"> <- Game type like SRO/HO/KO <input type="image" src="http://www.moneybookers.com/images/banners/email.gif" value="submit" name="I1" align="left"> </form> I wanted to be able to do this without having to write numerous forms for each thing. Please help as I have read as much as I can and have searched everywhere. Any help would be greatly appreciated. Kris Link to comment https://forums.phpfreaks.com/topic/66944-multiple-variable-forms/ Share on other sites More sharing options...
Hypnos Posted August 27, 2007 Share Posted August 27, 2007 I am trying to create a form that will autofill variables into the buy it now button. Example Your example code looks right. I wanted to be able to do this without having to write numerous forms for each thing. You do have to write a form for each payment system. Paypal has a lot of documentation for this sort of thing, but it's specific to Paypal. Link to comment https://forums.phpfreaks.com/topic/66944-multiple-variable-forms/#findComment-335739 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.