Help with Code

Hi everyone I’m new to php only done a little I’m having trouble with the code below. The Chicken Snack or Cheeseburger line and McCafee Coffee Line. the amounts are not working when we put an order in this line is not working. Any help greatly appreciated

[php]
$message .= "Chicken Snack Wrap or Cheeseburger: " . $chicken_snack_wrap2 . “\n”;
$message .= "Small McCafe Coffee: " . $small_mcafe2 . “\n”;

[/php]

Chicken Snack Wrap or Cheeseburger

<input type=“text” class=“productBox” id=“chicken_snack_wrap2” <?php if ($chicken_snack_wrap2) { echo 'value="' . $chicken_snack_wrap2 . '"'; } ?> name=“chicken_snack_wrap2” />

Small McCafe Coffee
<input type=“text” class=“productBox” id=“small_mcafe2” <?php if ($small_mcafe2) { echo 'value="' . $small_mcafe2 . '"'; } ?> name=“small_mcafe2” />

Going to need more code than that. There’s nothing that tells us what’s happening with the input once its submitted.

Thanks Richei I’ve fixed the problem :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service