I would have a MySQL backend database which has a table that records campground names, IDs and email addresses. Something like
[tt]ID campground_name email_address
1 Al's campground [ignore]al@alscampground.tld[/ignore]
2 Betty's campground [ignore]bsmith@aol.tld[/ignore]
3 Charlie's Kampingplatz [ignore]cc@kamping.tld[/ignore]
4 Denise's campground [ignore]denise@denisecamp.tld[/ignore][/tt]
I would then have three scripts: select.php, reserve.php and email.php. Select.php generates an HTML form which contains a dropdown with data from the above table. The form submits to reserve.php.
Reserve.php will generate an HTML form with the fields necessary to collect reservation information from the user. That form will also contain a hidden field which holds the ID (from the above table via the form on the previous page) of the campground. This form submits to email.php.
email.php will take the data submitted from the previous form, use the ID to look up in the database the email address of the campground, prep all the reservation data, and email the data.
Want the best answers?
Ask the best questions!
TANSTAAFL!!