integrate php mail script with html form

Avanquest My mail list & address book -...
January 16, 2011 at 03:53:02
Specs: Windows XP
recently i found this php script to send email but i don't know how i can integrate this script with html form like "contact us form"?
the script i found out is here : http://www.vivekmodi.com/2011/01/se...

See More: integrate php mail script with html form

Report •

#1
January 16, 2011 at 18:05:05
Assuming your form uses the POST method:

<? 
if ( $_POST ) { 
	mail("your-email@example.com", "Subject of message", print_r( $_POST, true ), "From: valid-from-email-address@example.com"); 
}

//...rest of page follows



Note: The mail() function may not behave properly on Windows machines running PHP



Report •
Related Solutions


Ask Question