Jump to content

help with an automated price


brown2005

Recommended Posts

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--]

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.