Home › Forums › Back End › [Continue] Contact form › Re: [Continue] Contact form
December 13, 2009 at 10:44 pm
#68078
Participant
It’s not a simple answer, but I can start you in the right direction:
You create a <select name="category"> element with the three different categories as different <options>.
Make the value for each option ="theemail@address" for that option.
Then change the mail function:
Code:
mail(“[email protected]”, ‘(GD) ‘.$subject, $_SERVER[‘REMOTE_ADDR’].”nn”.$message, “From: $from”);
To:
Code:
mail(“$_POST[‘category’]”, ‘(GD) ‘.$subject, $_SERVER[‘REMOTE_ADDR’].”nn”.$message, “From: $from”);
I would also recommending programming a validation for that field too, to make sure it is correct.