I then put it on their servers and I get the following error on pages where I am trying to get POST results:
Notice: Undefined index: extra1box in D:\Domains\lunarcaravans.com\wwwroot\newlunar\caravans\ariva\ariva_prices.php on line 6
Notice: Undefined index: extra3box in D:\Domains\lunarcaravans.com\wwwroot\newlunar\caravans\ariva\ariva_prices.php on line 14
Here is my code:
Code: Select all
if($_POST['extra1box'] == "on"){
$total = $total + $_POST['extra1'];
}
if(isset($_POST['alloy'])){
$total = $total + $_POST['alloy'];
}
if($_POST['extra3box'] == "on"){
$total = $total + $_POST['extra3'];
}Also, I don't get that error for the alloy in that section of the code, but I do when it is called here:
Code: Select all
<input type="radio" name="alloy" value="260" <?php if($_POST['alloy'] == "260"){echo('checked="checked" ');}?>/>(2)<br />
<input type="radio" name="alloy" value="520" <?php if($_POST['alloy'] == "520"){echo('checked="checked" ');}?>/>(4)Notice: Undefined index: alloy in D:\Domains\lunarcaravans.com\wwwroot\newlunar\caravans\ariva\ariva_prices.php on line 48