Hi!
I understand what you are saying but how do i get:
if(isset($sunroof)) // Name of checkbox
{
$msg1 .= "- Sunroof\r\n";
}
to become $checked_options. ($msg1 .= "The vehicle you would like a quote on is:\n";
$msg1 .= "A $year $make $model $vehicle_style with $Transmission_Choice transmission. You would like it to come in $Color_Choice.\n";
$msg1 .= "You have also selected that the following options must be included on this vehicle: $checked_options.")
do you know what i mean? I understand i need an if-else statement. But it's getting all the options to go thru (what? an array?). I had envisioned it like this: All checked boxes are seperated by a comma, the last option checked does not have a comma. It would read "You have also selected that the following options must be included on this vehicle: Power Windows, Remote Keyless Entry, Leather Upholstery." If no boxes are checked then the sentence above would read like this "You have also selected that the following options must be included on this vehicle: no options were selected."
I am sorry if this is confusing ... or if i was unclear when i wrote the post earlier or if i am not making sense now. LOL
Regards
Christy
ProgrammerMan wrote:
if(isset($sunroof)) // Name of checkbox
{
$msg1 .= "- Sunroof\r\n";
}