brown2005 Posted May 5, 2006 Share Posted May 5, 2006 i have a select box on my form that says:Featured and Yes and No are the options....when it is at No i want a price field to be $config_price and when yes is selected i want the price to change to $config_price_featuredany ideas? Link to comment https://forums.phpfreaks.com/topic/9115-help-with-an-automated-price/ Share on other sites More sharing options...
jeremywesselman Posted May 5, 2006 Share Posted May 5, 2006 This is the part you will use in your form processor.[code]<?php$featured = $_POST['featured'];if($featured == "Yes") $price = $config_price_featured;else $price = $config_price;?>[/code]And you would set up your select box like this.[code]...<select name="featured"><option value="Yes">Yes</option><option value="No">No</option></select>...[/code]I think this is what you're lookin' for.[!--coloro:#990000--][span style=\"color:#990000\"][!--/coloro--]Jeremy[!--colorc--][/span][!--/colorc--] Link to comment https://forums.phpfreaks.com/topic/9115-help-with-an-automated-price/#findComment-33513 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.