PHP: contact form is not redirect to thank you

There must be something wrong in the script contact.php, but I can't seem to find http://www.nsmcleaning.com/contact.php should go to http://nsmcleaning.com/contact.php?status=thanks but it is not redirect. Help, please. Thank you.

pobarron wrote:

Yes this is what is happening. In the tut the guy he breaks down into three pages and then assembles them in a php file. He's done it before, but now after the tut it doesn't. So I must have missed something in it. I'll go on. Thank you guys. I will also report it for future reference.

No reason why you use what seems to be a solution complex when a simple will do: (xxxxxx designated email address - I've removed to avoid spam)

<>

If ($_SERVER ['REQUEST_METHOD'] == 'POST') {}

$name = trim($_POST["name"]);

$email = trim($_POST["email"]);

$phone = trim($_POST["phone"]);

$message = trim($_POST["message"]);

If ($name == "" OR $email == "" OR $message == ' ') {}

$error ="

Oops! Name, email and message are required.

";

}

$to = "[email protected]";

$subject = "your comments/request for information;

$headers = "from: $email";

{if (! isset ($Error))}

$email_body = "name: $name\n\n;

$email_body. = "e-mail: $email\n\n";

$email_body. = ' Phone: $phone\n\n ";

$email_body. = "message: $message\n\n";

mail ($ $subject, $email_body, $headers);

Header ("Location: contact.php? status = thanks");

$sent = "mail sent successfully ';

}

}

?>

NSM cleaning | Contact

NSM Heading

Thanks for the email! I'll be in touch soon.

Questions or comments? Get in touch with Nancy.

NSM Footer

Tags: Dreamweaver

Similar Questions

  • PHP contact form does not work

    I created my page using godaddy but my php contact form does not work. When sending a message, he won't have to the sent Message (su message to ha enviado) page, but it is not actually send any mails. The accounts are set up, but it does not work. The web page is cuysrus.com, the contact form is on the contact page.

    This is the code I used for the php class linked to the html file:

    <? PHP

    $to = " [email protected] "; "

    $subject = 'new message ';

    $nombre = $_POST ['number'];

    $apellido = $_POST ['apellido'];

    $message = $_POST ['message'];

    $headers = "from: ". " [email protected] \n";

    $headers. = "X-Mailer: PHP /'." phpversion();

    $headers. = "MIME-Version: 1.0\r\n";

    $headers. = "content-Type: text/html;" charset = iso-8859-1\n ";

    $retval = mail ($to $subject, $message, $headers);

    If ($retval == true) {}

    echo "message Su will ha enviado.

    } else {}

    echo "Vuelva a intentarlo.

    }

    ? >

    Well sorry that I forgot to ask about the action of form... you will need to rework this if you do not have to use the form of godaddy.

    a few things... first of all, you have the transformation code in the page, if you want that your action forms literally go anywhere.  ' change action = "? »

    Second, you'll need a 'trigger' in the form must be added a hidden as field

    Thirdly, finally, you have this block of code that I rewrote the process, if there is a request for 'process' then here is the code:

    <>

    form of process

    If (@$_REQUEST ['process']) {}

    $headers = "from: [email protected] \n";

    $to = "[email protected]";

    $subject = 'new message ';

    $body = "number:". "" $_REQUEST ['number']. »

    Apellido: ".." $_REQUEST ['apellido']. »

    Message: ".." $_REQUEST ['message']. »

    ";

    $retval = mail ($to $subject, $body, $headers);

    If ($retval == true) {}

    echo "message Su will ha enviado.

    } else {}

    echo "Vuelva a intentarlo.

    }

    }

    ?>

  • My contact form does not work. When you send a message, it never happens.

    WE use an email to the same address as the website, IE [email protected] and the site is johnblakecpa.com

    Is it not enough?

    For now, I removed the form, after complaints from customers.

    Contact forms need some 'PHP' processing on the server side.

    And using this verification to ReCaptcha can cause additional problems.

    I just checked with MacHighway, and they require a special action to let the html pages to go through this process.

    Pages with the normal "html" extension are not processed by default (only those with php are processed). Check out his page for assistance: How set PHP to parse files with the extension .html - knowledge base - MacHighway

    Another useful source is this page: Troubleshooting Muse form used on the servers of third party Widgets

    I hope this helps...

  • Contact form will not send any e-mail.

    Hi all!

    My contact form will not send to my email. When I click the button submit it says message sent, but in reality it has not sent anything. Can someone please?

    My Html code:

    " < form method ="post"action =" MAILTO: [email protected] "enctype =" text/plain"> "

    < div align = "right" >

    < p > < span class = "message" > name: </span >

    < input type = "text" size = "50" name = "FirstName" padding = "5" placeholder = "or anonymous" > < br >

    < /p >

    < p > < span class = "message" > Email: </span >

    < input type = "text" size = "50" name = "email" placeholder = "Option if you want an answer back" > < br >

    < /p >

    < p > < span class = "message" > Message: </span >

    < textarea = 'message' id = cols 'message' name = "45" rows = placeholder "27" = a "request prayer for yourself" or someone else > < / textarea >

    < /p >

    < input name = "Submit2" type = 'submit' class = "submit" id = "Submit" value = "Submit" / >

    < / div >

    < / make >

    < / div >

    < do action = "sent_form.php" method = "post" enctype = "text/plain" name = "form2" id = "form2" > "

    < / make >

    < form id = "form1" name = "form1" method = "get" action = "mailto: " [email protected] ">

    < / make >




    Here is my PHP code:

    <? PHP

    $first_name = $_POST ["FirstName"];

    $email = $_POST ['email'];
    $message = $_POST ['message'];

    $to = " [email protected] ";

    $subject = 'new Message ';

    mail ($to, $subject, $message, ' from: '. $first_name. $email);

    echo "thank you."

    ? >

    Your PHP script is not enough.  It must contain your email address, disinfect & validate form input fields, etc...

    Your HTML form must never contain your email address.

    If your PHP script is in a separate file, you must reference it in the action attribute of the form as follows:

    action = "votre-forme-a-e-mail-script.php".


    PHP 5 forms validate email and URL


    Nancy O.


  • PHP Contact form scam?

    I mainly work with XHTML, CSS & ASP Some... not .net.

    I found a PHP Contact form on Go4Expert.com
    http://www.web1marketing.com/resources/tools/form-mailer.php.txt
    http://www.web1marketing.com/resources/tools/PHP-form-mailer.htm

    As you can see this set off a red flag to me scam:
    $mailPassword = "password"; The e-mail password associated with $mailTo


    $params ["password"] = $mailPassword;

    Is it a scam or not?
    He looks just bait for me...

    Thanks - 8)

    Moreover, I notice that the script will use $HTTP_POST_VARS, which is obsolete. So, I'd be suspicious of the script for other reasons, but not because of the use of the SMTP password.

  • My 'contact' form does not work.  When I send a contact test she returned to my adobe email account this: 'Contact form' has a new form submission.

    My 'contact' form does not work.  When I send a contact test he returned this to my adobe email account:

    'Contact form' has a new form submission.

    What does not work exactly? As you said form submission notification is received in your e-mail account, so process form working I think but you want the notifications to go to another e-mail account, I think.

    Have you added the email address in the field "Email to" in shape options? If Yes and then also you do not receive the form, then please give me the url of the site and post a screenshot or a form with the open option box.

    Thank you

    Sanjit

  • Problem with 'Reply-To' on the PHP contact form...

    Hi guys,.

    I created a PHP contact form that works perfectly; except, when I received the email in my Inbox and go to there to answer, it is not an answer to the e-mail address of the person who submits the form - in the area of response, he seems to have the email address of the default server.

    Here is my code I included in the same PHP page as my form:

    Sorted!

    I removed...

    $headers. = "reply-To:". "." $_POST ['email']. « \r\n » ;

    .. .and added...

    $headers = "MIME-Version: 1.0\r\n";

    $headers. = "content-type: text/html;" charset = iso-8859-1\r\n ";

    $headers. = "reply-To:". "." $_POST ['email']. « \r\n » ;

  • PHP Contact form problem

    Hi all

    I am using a php Contact form and it is throwing an error before I click on submit. As a beginner in PHP I don't really know where I am going wrong.

    Here is the link to the contact form.

    http://www.thesketchcollective.co.UK/clients/form-example/MyForm1.php

    Secondly, I join the form to send an email but also send the information to CSV format. It currently sends it a little to a CSV file.

    Any help would be appreciated.

    See you soon

    Tom

    Just what I thought.  Add this before line 2:

    if (isset($_POST['formSubmit'])) {
    

    And add after line 27:

    }
    

    Then the lines 46 & 50 that you use a variable that does not exist yet.  Y at - it a page before this form where the variable is set before this page?

    If the answer is no, and more than likely it is remove the "value =...". "part of the code for your contributions.  They aren't really any purpose here and it is because of the same error type, as indicated above.  The value field essentially specifies the information that must be in the input field when the page loads before the user types anything.  Then, you should be able to remove it without consequences, unless it is a multiple page form or as long as you don't go no information of this form before it is entered by the user.

  • My contact form does not work, not even in business catalyst

    My contact form does not work, not even in BusinessCatalyst, need help so I need to work, my BusinessCatalyst site is http://foodtrucksdecolombia.BusinessCatalyst.com and it works in my own server which is www.foodtrucksdecolombia.com need

    I see what you mean now. Seems to be a problem with your phone field. Did you by chance change the email for a field phone field? I see that you do not have a field of electronic mail and an email field is required for the form to work. If I add an email to the contact number field, it works fine.

  • Blue contours appeared and I can't control my iphone 5 s. I can't go to settings. I triple click on the button "home" and gives a message to go into settings and enter the password but I can't get to the settings. What does not work? Thank you

    Blue contours appeared and I can't control my iphone 5 s. I can't go to settings. I triple click on the button "home" and gives a message to go into settings and enter the password but I can't get to the settings. What does not work? Thank you

    The blue plan is switch control.

    s http://gettecla.com/blogs/News/15538916-what-is-switch-control-mode-in-apples-IO

    Triple click to get rid of him.

    "Siri to the rescue.  I said turn off the control switch. »

    Re: How to disable the switch control

    I don't get a request for an access code.  What is a school system?

    switch control

    Settings > general > accessibility > switching control

    R

  • I would like to change my subscription to a new laptop computer. Can I just disconnect on the old laptop and upload the new or should I uninstall on the old?   I also installed on my desktop that will not change. Thank you!

    I would like to change my subscription to a new laptop computer. Can I just disconnect on the old laptop and upload the new or should I uninstall on the old?   I also installed on my desktop that will not change. Thank you!

    Remove the license on a computer http://forums.adobe.com/thread/1442423?tstart=0 can help

    -read http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html

    -or https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

  • I try to install FontAwesomePS_1.0.0 for Photoshop CC15. This extension cannot be mounted, it requires the version of photoshop 64 to inclusively between 14.0 and 15.9. Can someone explain why this extension is not installed? Thank you!

    I try to install FontAwesomePS_1.0.0 for Photoshop CC15. This extension cannot be mounted, it requires the version of photoshop 64 to inclusively between 14.0 and 15.9. Can someone explain why this extension is not installed? Thank you!

    Looks like you are installing in the extensions manager that is no longer supported for 2015 of CC. Please refer to the CC app instead.

  • On Windows 7 Ultimate, office with drive C (System), can D K and L labels, I install Adope Creative Suite 6 Production Premium (from cd) for drive D (not C). Thank you.

    On Windows 7 Ultimate, office with drive C (System), can D K and L labels, I install Adope Creative Suite 6 Production Premium (from cd) for drive D (not C). Thank you.

    You can, but there may be some problems and many files will be saved on your drive c, in any case.

  • I have a html file and in it, I have a PHP contact form. However, the html code does not run php. pls help... Thank you

    I wrote a simple html Web page with menus and pull-down (using Dreamweaver) which also includes a contact form. The contact form is in PHP. However, when I run the html file, all right and that the contact form appears, however, she does not run PHP code. Do I have to make any changes of setting or download all the files? Thank you very much

    If you run your own apache server, then you need also a mail server, but if you use a hosted service then your host should have the scripts and HTML on their Web site.  Otherwise, you can use Wufoo free version and you can create your own form and code (JavaScript) that can be integrated into your HTML page. I used Wufoo in Joomla sites and it works very well.

  • Contact form does not. PHP

    Hello

    My contact form doesn't work and its probably a easily the solution to this. Help, please

    Sarah

    HTML:

    < do action = "mail.php" method = "POST" > "

    < div class = "row 50%" >

    < div class = "6u 12u (mobile)" > < input type = "text" name = placeholder 'name' = "Namn" / > < / div >

    < div class = "6u 12u (mobile)" > < input type = "email" name = "email" space reserved = "Email" / > < / div >

    < / div >

    < div class = "row 50%" >

    < div class = "12u" > < textarea name = "message" = "Meddelande" placeholder lines = "6" > < / textarea > < / div >

    < / div >

    < div class = "row" >

    < div class = "12u" >

    < ul class = 'actions' >

    < li > < input type = "submit" value = "Skicka Meddelande" / > < /li >

    < /ul >

    < / div >

    < / div >

    < / make >

    PHP:

    <? PHP $name = $_POST ['name'];

    $email = $_POST [' [email protected] *'];

    $message = $_POST ['message... »] ;

    $formcontent = "" from: $name \n Message: $message ";"

    $recipient = "... @gmail.com;

    $subject = "contact form";

    $mailheader = "from: $email \r\n";

    mail ($subject, $recipient, $mailheader, $formcontent) or die ("Error!");

    header ("Location:http://www...se");

    ? >

    Make sure that the configured php code corresponds EXACTLY with your entry of the form name. For example, your entry form for Namn is name = 'name', while in the php code its $name = $_POST ['name']; (with a capital 'n')-the same goes for "message" and you have a little... after it - $message = $_POST ['Message... ". »] ;

    $email = $_POST [' [email protected] *'];

    $message = $_POST ['message... »] ;

    $formcontent = "" from: $name \n Message: $message ";"

    $recipient = "... @gmail.com;

    $subject = "contact form";

    $mailheader = "from: $email \r\n";

    mail ($subject, $recipient, $mailheader, $formcontent) or die ("Error!");

    Header ("Location:http://www...se");

    ?>

Maybe you are looking for