Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Continue] Contact form Re: [Continue] Contact form

#68078
AshtonSanders
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.