Jump to content

Spot the not?


bilis_money

Recommended Posts

can you something wrong with these codes?

 

<?php
if (isset($_POST['Submit'])){
    $recepient = "[email protected]";
    $subject = "You have Guest! from mydomain.com";

    $contents = "First Name:  " . $_POST['fname'] .
    			"\n\nLast Name:  " . $_POST['lname'] .
    			"\n\nStreet1:  " . $_POST['st1'] .
    			"\n\nStreet2:  " . $_POST['st2'] .
    			"\n\nCity:  " . $_POST['city'] .
    			"\n\nState:  " . $_POST['state'] .
    			"\n\nZip code:  " . $_POST['zcode'] .
			"\n\nCountry code:  " . $_POST['countcode'] .
    			"\n\nCountry:  " . $_POST['country'] .
    			"\n\nPhone number:  " . $_POST['pnumber'] .
    			"\n\nE-mail address:  " . $_POST['email'] .
    			"\n\nEnquiry:  " . $_POST['enquiry'];
}

    $headers = "Reply-to: [email protected]\n";
    mail($recepient, $subject, $contents, "From: [email protected]");
?>

Link to comment
https://forums.phpfreaks.com/topic/46447-spot-the-not/
Share on other sites

Thanks guys but actually the server is not set to display error messages.

 

That's why i don't know where to look for the specific problem too.

 

 

But that script is not really working.

I wonder why?

 

 

 

check error_php.log file ,if you can't access it then use ini_set (check php manual) to override your server setting, to display errors

 

Link to comment
https://forums.phpfreaks.com/topic/46447-spot-the-not/#findComment-225952
Share on other sites

This is an uninformational post.  You are going to have to detail out your problem, if the mail is not sending it could be multiple things.  If it's not properly setting the from header, it could be multiple things.  You are going to have to be more specific as far as what is "actually" not happening, or is happening incorrectly.

Link to comment
https://forums.phpfreaks.com/topic/46447-spot-the-not/#findComment-225965
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.