Hi,
I have several types of contact forms on my web site and when submit
is hit I would like the PHP code to build a string with each variable
name and value and dump it in an email to me.
So I need to iterate through all the request variables on the contact
form in a generic fashion.
Can someone please let me know the best way to do this?
I am very new to PHP so feel free to point out a better way than below
to send an email.
At the moment it's like this but I explicitly have to extract each
request variable:
$message = "A contact request from the web site has been
received.\n\n";
$message = $message . "Full Name: " . $_REQUEST['Contact_FullName'] .
"\n";
$message = $message . "Title: " . $_REQUEST['Contact_Title'] . "\n";
//echo $message;
mail( "ex*****@mail.com", "Web site contact request", $message, "From:
ex*****@mail.com" );
Thankyou,
Luke Bellamy
Newcastle, Australia