It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Help with forms (paypal)

Help with forms (paypal)

Postby python on Sat Mar 28, 2009 11:19 pm

Im trying to create a multi-currency donation page withe several colums each having there own curreny deno,ination within them.

The problem i am having is how could i use several currencies within one form?

Here is a snippet of one of the ways i have tried..


Code: Select all
<tr>
         <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
          <td class="alt2">
              <input type="hidden" name="cmd" value="_donations">
              <input type="hidden" name="business" value="donate@mysite.com" />
              <input type="hidden" name="item_name" value="Donation to mysite.com">
              <input type="hidden" name="currency_code" value="EUR">
              <br />
              <input type="radio" name="amount" value="35.00" />
            Price Option 1 $35.00
            <br />
              <input type="radio" name="amount" value="55.00" />
            Price Option 2 $55.00
            <br />
              <input type="radio" name="amount" value="75.00" />
            Price Option 3 $75.00
            <br/>
              <input type="submit" value="Click to Donate">
          </td>
         
           <td class="alt2">
             
              <input type="hidden" name="currency_code" value="GBP">
              <br />
              <input type="radio" name="amount" value="35.00" />
            Price Option 1 £35.00
            <br />
              <input type="radio" name="amount" value="55.00" />
            Price Option 2 £55.00
            <br />
              <input type="radio" name="amount" value="75.00" />
            Price Option 3 £75.00
            <br/>
              <input type="submit" value="Click to Donate">
          </td>
                    </form>



This worked in the sense that it functioned correctly but it failed to notice the '<input type="hidden" name="currency_code" value="GBP">' and use the first currency_code EUR

Any help here would really be appreciated as ive been on with this for ages.
python
 
Posts: 1
Joined: Sat Mar 28, 2009 11:15 pm

Re: Help with forms (paypal)

Postby dflynn on Mon Mar 30, 2009 4:29 am

Why not put PHP to work and use some variables to change the currency?
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada


Who is online

Users browsing this forum: No registered users and 5 guests