Jump to content

"FROM" nobody


Mr_J

Recommended Posts

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("mymail@somewhere.com","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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.