Jump to content

Multiple variable forms


kparish

Recommended Posts

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="myemail@mywebsite.com" name="pay_to_email">

<input type="hidden" value="myemail@mywebsite.com" 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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.