Jump to content

Changing a text value based on a select box drop down


craigtolputt

Recommended Posts

Hi Guys,

 

I have a form with a select box which has, how many guests will be attending.

 

The options are 1,2,3,4,5.  So all i need to do is change a text value based on what option they select.

 

So if they select:

 

1 - the price text value will change to £25

2 - the price text value will change to £50

3 - the price text value will change to £75

4 - the price text value will change to £100

5 - the price text value will change to £125

 

I also have a paypal button integrated which i bought from codecanyon but at the minute all the values are static and defined in the top of the php page.

 

so i have this which tells paypal how much to charge but this is what i need to make dynamic.

 


# Product Price in GBP (example 5.00 or 5.99)
define('ProductPrice','25.00');

 

 

Any ideas would be greatly appreciated.

 

thanks

 

Craig

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.