Mr_J Posted November 5, 2009 Share Posted November 5, 2009 Hi all, Another mail form... When I receive the mail, the "From" head= NOBODY. How can I change this(nobody) to the web address? HTML: Contact us The form: <form method="post" enctype="multipart/form-data" action="work.php" onSubmit="return validatePage1();"> This code is the button SUBMIT, RESET... <input id="saveForm" class="mainForm" type="submit" value="Submit" /> <input type="reset" value="Reset"> Then, WORK.PHP: <?PHP $where_form_is="Changed to whatever NO DIFFERENCE".$_SERVER['Changed to whatever NO DIFFERENCE'].strrev(strstr(strrev($_SERVER['Changed to whatever NO DIFFERENCE']),"/")); mail("[email protected]","The Subject","First line in mail msg: Name: " . $_POST['field_1'] . " Surname: " . $_POST['field_2'] . " Email: " . $_POST['field_3'] . " Tel: " . $_POST['field_4'] . " Message: " . $_POST['field_5'] . " a creation by MrJ. "); include("confirm.html"); ?> in the "confirm.html, I just say thank you etc. as well as the validation of the e-mail address and other required fields... Link to comment https://forums.phpfreaks.com/topic/180389-from-nobody/ Share on other sites More sharing options...
trq Posted November 5, 2009 Share Posted November 5, 2009 See example #2 mail. Link to comment https://forums.phpfreaks.com/topic/180389-from-nobody/#findComment-951645 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.