I found this simple script on the web and started to play with it. For some reason it sends me emails but I dont get any of the fields returned. I get the message that "We've recived your information" and I get an email but they are always empty. The names and Ids of the fields in the form are: subject,detail,customer_mail,name
php action script for forms
8
I found this simple script on the web and started to play with it. For some reason it sends me emails but I dont get any of the fields returned. I get the message that "We've recived your information" and I get an email but they are always empty. The names and Ids of the fields in the form are:
subject,detail,customer_mail,name
subject,detail,customer_mail,name
Code:
<?php // Contact subject $subject ="$subject"; // Details $message="$detail"; // Mail of sender $mail_from="$customer_mail"; // From $header="from: $name <$mail_from>"; // Enter your email address $to ='myemailaddress.info'; $send_contact=mail($to,$subject,$message,$header); // Check, if message sent to your email // display message "We've recived your information" if($send_contact){ echo "We've received your contact information"; } else { echo "ERROR"; } ?>
- webn
- egyptik
- [ 1 ] Thanks
- [1] reply
- rhinocl
- nmcc
- [ 1 ] Thanks
- otfromtot
- WMSTR
Next Topics on Trending Feed
-
8