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? Quote Link to comment 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--] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.