rabidrabbit
Jun 8th 2007, 7:44 am
Hello All,
I have a form that is written in PHP which has dropdown lists. These are optional for the customer to fill out. They can request up to 4 items in each category, so if they choose 1 item, the remainder of the items should not show up in their confirmation e-mail nor should it show up in my e-mail. The problem is that when I receive the e-mail of the requested information, the list of dropdown items are shown, even if they didn't request any of the items. I am not sure how to tell the script to not print/echo the information on the form if there is nothing selected. It works okay, but there is too much chance for error on filling the order if there are blank areas repeating.
Below is a link to the script, obviously, I'm new at this so there is probably a much better way of organizing the dropdown information...
http://www.countymaterials.com/thinOrderForm.php
Below is part of what I'm getting back in my e-mail confirmation...
NOTE: The part I don't want to show up is the "Heritage Colors: Choice 2" since there was nothing selected for this.
Any help is much appreciated!! Thanks!
============================================
Thanks for your order!
CONTACT INFORMATION
------------------------------
Your Name: test
Your E-Mail: test@test.com
Company: test
Occupation: test
Address: sssss
City: ssss
State: WY
Zip: 55555
Phone: 111-111-1111
Fax:
ORDER SUMMARY
---------------------
Heritage Colors, Choice 1: Black Walnut
Size Heritage: 8x16
Texture Heritage: Rough Estate
Quantity Heritage: 12
Sample Type Heritage: Loose Brick
---------------------
Heritage Colors, Choice 2:
Size Heritage:
Texture Heritage:
Quantity Heritage:
Sample Type Heritage:
I have a form that is written in PHP which has dropdown lists. These are optional for the customer to fill out. They can request up to 4 items in each category, so if they choose 1 item, the remainder of the items should not show up in their confirmation e-mail nor should it show up in my e-mail. The problem is that when I receive the e-mail of the requested information, the list of dropdown items are shown, even if they didn't request any of the items. I am not sure how to tell the script to not print/echo the information on the form if there is nothing selected. It works okay, but there is too much chance for error on filling the order if there are blank areas repeating.
Below is a link to the script, obviously, I'm new at this so there is probably a much better way of organizing the dropdown information...
http://www.countymaterials.com/thinOrderForm.php
Below is part of what I'm getting back in my e-mail confirmation...
NOTE: The part I don't want to show up is the "Heritage Colors: Choice 2" since there was nothing selected for this.
Any help is much appreciated!! Thanks!
============================================
Thanks for your order!
CONTACT INFORMATION
------------------------------
Your Name: test
Your E-Mail: test@test.com
Company: test
Occupation: test
Address: sssss
City: ssss
State: WY
Zip: 55555
Phone: 111-111-1111
Fax:
ORDER SUMMARY
---------------------
Heritage Colors, Choice 1: Black Walnut
Size Heritage: 8x16
Texture Heritage: Rough Estate
Quantity Heritage: 12
Sample Type Heritage: Loose Brick
---------------------
Heritage Colors, Choice 2:
Size Heritage:
Texture Heritage:
Quantity Heritage:
Sample Type Heritage: