Mehok, perhaps your server does not have SMTP on it, or at least sendmail I should say. A way that you can see if it is something with the script is by changing the following line:
PHP Code:
if (@mail($to,$subject,$msg)) {
to this:
PHP Code:
if (mail($to,$subject,$msg)) {
notice I took the "@" sign from the front of mail(). This will now display any error messages if there are any errors.
tomyknoker,
this formmail script should work with it, all you would have to change is the first part to suit your needs.
Example:
PHP Code:
//Get the variables
$text1 = $_REQUEST[textfield1];
$text2 = $_REQUEST[textfield2];
$check1 = $_REQUEST[checkbox1];
$tarea1 = $_REQUEST[textarea1];
//add more if needed
the $_REQUEST['yourfieldname']; gets the value that was submitted in the form then assigns a variable for you to use in the php script.
Bookmarks