Hello Guys... I've got a form where I'm submitting information over to a PHP script. In that script, I've got the information being sent to my e-mail address as well as being posted back to the person who entered the information.
I have 10 check boxes about different products we offer and when they select the item, I want it to be displayed in the email as:
or even as
I thought it was be something like:
and then have that for each of the products I have. Then in the end I would have $moreinfo as a list of whichs buttons they selected.
When I have it like that, it prints out a "0" for the value instead of "Product 1, Product 2, etc".
Am I doing something wrong in that statement? I know it works for values where $moreinfo would be 1 and we would be adding numbers, but is this the only way those statements work (in a number value) or am I just entering something wrong?
Simon
I have 10 check boxes about different products we offer and when they select the item, I want it to be displayed in the email as:
Wants more info on: Product1Name, Product2Name, etc
Wants more info on:
Product1Name
Product2Name
etc
Product1Name
Product2Name
etc
Code:
$moreinfo =""; if ($moreinfo1 == "Yes") { $moreinfo = $moreinfo + "Product 1"; }
When I have it like that, it prints out a "0" for the value instead of "Product 1, Product 2, etc".
Am I doing something wrong in that statement? I know it works for values where $moreinfo would be 1 and we would be adding numbers, but is this the only way those statements work (in a number value) or am I just entering something wrong?
Simon
Comment