mail form does not work

I use the form mail below.   When you press submit, it takes on a blank page and has www.choiceanalytical.com/php/mail_form.php in the address line.  Nothing will happen.  I'm new to web development.  I used the tutorials on website training Timothy to build my site.  Everything else works fine. GoDaddy host my site and I contacted and they state that there is no restriction on the form of mail.  Help, please.  I'm so confused.

OPTIONS - PLEASE CONFIGURE THESE BEFORE USE!

$yourEmail = " " [email protected] "; the e-mail address that you wish to receive these emails by

$yourWebsite = " " http://www.choiceanalytical.com "; the name of your site

$thanksPage = "thankyou.html"; URL to the page "thank you for sending mail." leave blank to keep the message on the same page

$maxPoints = 4; Max points, a person can hit before he refuses to submit - recommend 4

-EDIT NOT BELOW HERE-

$error_msg = null;

$result = null;

function isBot() {}

$bots = array ("Indy", "Love", "Java", "libwww-perl", "Python", "OutfoxBot", "User-Agent", "PycURL", "Dec", "T8Abot", "Syntryx", "WinHttp", "WebBandit", "nicebot");

$isBot = false;

foreach ($bots as $bot)

If (strpos ($_SERVER ['HTTP_USER_AGENT'], $bot)! == false)

$isBot = true;

If (empty($_SERVER['HTTP_USER_AGENT']) | $_SERVER ['HTTP_USER_AGENT'] == "'" ")

$isBot = true;

output ("Bots not allowed. < /p > ");"

}

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

clean function ($data) {}

$data = trim (stripslashes (strip_tags ($data)));

return $data;

}

$points = (int) 0;

foreach ($badwords as $word)

If (strpos ($_POST ['comment'], $word)! == false)

$points += 2;

foreach ($exploits as $exploit)

If (strpos ($_POST ['comment'], $exploit)! == false)

$points += 2;

If (strpos ($_POST ['comment'], "http://").) == false. strpos ($_POST ['comment'], "www."). == false)

$points += 2;

If (isset($_POST['nojs']))

$points += 1;

If (preg_match ("/ (<.)")) (*_>) / I ', $_POST ['comments']))

$points += 2;

If (strlen($_POST['name']) < 3)

$points += 1;

If (strlen($_POST['comments']) < 15 | strlen ($_POST ['comment'] > 1500))

$points += 2;

foreach ($_POST as $key = > $value)

$_POST [$key] = trim ($value);

If (empty($_POST['first_name']) | empty($_POST['last_name']) | empty($_POST['email']) | empty($_POST['comments'])) {}

$error_msg. = "name, email and comments are required fields. \n » ;

} else if (strlen($_POST['name']) > 15) {}

$error_msg. = "the name field is limited to 15 characters. Your first name or nickname will do the trick! \n » ;

} elseif (! preg_match ("/ ^ [a - zA - Z-'\s] ' * $/", stripslashes($_POST['name']) ")) {}

$error_msg. = "the name field should not contain special characters. \n » ;

(} else if ([! preg_match('/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\@([a-z0-9])(([a-z0-9-])*([a-z0-9])) +'. '(\. ([a-z0-9]) ([- a - z0 - 9_-]) ? ([a-z0-9]) +) + $/ i', strtolower($_POST['email']))) {}

$error_msg. = "is not a valid e-mail address. \n » ;

} else if (! empty($_POST['url']) & &! preg_match ('/ ^(http|https) :\/\/ (([A-Z0-9] [A-Z0-9_-] *) (\.)))) [A-z0-9] (([A-z0-9_-] *) +)(:(\d+))?) \ / ? ((/ i', $_POST ['url']))

$error_msg. = "invalid website url.";

If ($error_msg == NULL & & $points < = $maxPoints) {}

$subject = "email of the AutoShape.

$message = "you received this e-mail message through your Internet site: \n\n";

foreach ($_POST as $key = > $val) {}

$message. = ucwords ($key). ": " . Clean ($Val). « \r\n » ;

}

$message. = "IP:". $_SERVER ['REMOTE_ADDR']. » \r\n » ;

$message. = "browser: '." $_SERVER ['HTTP_USER_AGENT']. » \r\n » ;

$message. = "points: '." $points;

If (strstr ($_SERVER ["'SERVER_SOFTWARE"], "Win")) {}

$headers = "from: $yourEmail \r\n";

$headers. = "reply-To: {$_POST ['email']}";

} else {}

$headers = "from: $yourWebsite < $yourEmail > \r\n";

$headers. = "reply-To: {$_POST ['email']}";

}

If (mail ($yourEmail, $subject, $message, $headers)) {}

If (! empty ($thanksPage)) {}

Header ("Location: $thanksPage");

"exit";

} else {}

$result = 'your message has been sent successfully.';

}

} else {}

$error_msg = 'your mail could not be sent this time.';

}

} else {}

If (empty ($error_msg))

$error_msg = ' your mail is too similar to spam and this time could not be sent. ['. $points.] "]" ;

}

}

function get_data ($var) {}

If (isset($_POST[$var]))

echo htmlspecialchars($_POST[$var]);

}

This is not a form of electronic mail.

This is code that is designed to validate a form.

Can you please tell me on the server where is your form? Alternatively, you can proceed as follows:

Create a web page with your navigation and everything, and in the code window, insert the following code:

--------------------

Your name:


Your Email:


Your phone:


E-mail:


Please fill the form to send a message or you will be responsible to return to this page until the form is fully completed.

--------------------

Now, create a new page and name it sendmail.php. It must be called sendmail.php, because that's what the form will look.

Now, in this page, in the code box paste the following:

--------------------

<>

$visitor = $_POST ['visitor'];

$visitormail = $_POST ['visitormail'];

$visitorphone = $_POST ['visitorphone'];

$notes = $_POST ['notes'];

$state = $_POST ['State'];

If (eregi ("http:", $notes)) {}

Die ("don't try that!");

}

If (! $visitormail == "" & (!)) strstr($visitormail,"@") | ! strstr($visitormail,".")))

{

ECHO '.

Use Back - enter a valid e-mail

\n » ;

$badinput ="

Your message has NOT been submitted.

\n » ;

echo $badinput;

Die ("Go back!");

}

If (($Visitor) Empty | empty ($visitormail): ($visitorphone) empty | empty ($notes)) {}

ECHO '.

Use your Back button - fill in all the fields, no message has been sent.

\n » ;

Die ("use back!");

}

$todayis = date ("' l, F j, Y, g: i a '");

$subject = New_Contact;

$notes = stripcslashes ($notes);

$message = "$todayis [IS] \n".

Message: $notes \n

From: $visitor ($visitormail) \n

Phone: $visitorphone ($visitorphone) \n

";

$from = "from: $visitormail\r\n";

mail ("[email protected]", $subject, $message, $from);

?>

Date:


Merci : ( )



Message:


", $notes);

echo $notesout;? >


--------------------

Now, download the two pages on your web server. Then test the result.

Please note that if you use GoDaddy hosting, good number of their servers do not support PHP. If you are on GoDaddy, it may not work. If it's not I spare myself any responsibility, because it was a bad idea for to host you with GoDaddy.

-Mark

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, 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.

  • 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

  • Contact widget form does not work.

    Contact widget form does not work. No message sent or received. Ordinary e-mail works fine. Site hosted by GoDaddy officially transferred in British Colombia. E-mail still hosted by GoDaddy. I set up correctly and changed the name servers. How can I solve the problem? I sent many messages to test through the widget. I get no email sent me. The button send the form only blackens, but nothing else happens

    Hi Alex,

    I guess that you are talking about the autoresponder email, which is sent to the sender of the form. The reason is 'Autoresponder send e-mail' is disabled on your form. To activate it, please log into the administration panel of your site, navigate to Site Manager > Web forms > open the form in question > autoresponder click email button and check the box "send email autoresponder".

    @Andiesam2004 > is the same with your site too.

    Kind regards

    Aish

  • Form does not work when it s poses in a movieclip


    I've isolated the problem and it s seems to be concentrated in the path "mcForm.skickat eq 'Yes' below: (the serverside script is done in Php).

    I t looks like that the form does not work when it s respondent in a movie clip called mcForm with a button send simply called 'send '.
    I have to place the form in a movieclip, because the shape is a good interpolation made by Laco interpolation method.

    Everything works fine if ["BOLD"] I have no place [/ bold] form in a movieclip.

    Here´s a part of the actionscript in the script main navigation.swf:

    If (mcForm.skickat eq 'Yes') {}
    gotoAndStop ("labelFinished");
    }

    Here´s actionscript code on the button 'Send' in mcForm in navigation.swf:
    on (release) {}
    loadVariables (" http://www.homesit.se/phpmail.php", "", "GET");
    _parent. Play (); This statement is not the problem.
    }

    The chronology in navigations.swf never reaches the label "finished."

    It works fine if I do not place shape to a movieclip in navigation.swf timeline:

    If (mcForm.skickat eq 'Yes') {//this path is the problem
    gotoAndStop ("labelFinished");
    }

    Here´s in php serverscript:
    (I have no problem here)

    <?
    $headline = "mail from your Homesite.
    $text = "$name sent email you from your homesite.
    It wrote:

    $message
    ";
    mail ($mymail, $headline, $text,
    "To: $email. (' \nReply-to:".$email);
    ECHO ("Send = Yes");
    ? >

    What could possible be wrong

    I appreciate every response.


    The root of the problem (look at the code you posted), it's that there is no event that determines what should happen when your data comes back from PHP. When you use loadvariables, you need an event for mcForm, like our:

    {mcForm.onData = function ()}
    do something
    }

    The problem according to what I see is that on your main timeline code checks the value of mcForm.skickat, but you do not seem to define this variable anywhere. The php script returns a variable named 'send', but I do not see anywhere skickat. If it is not set, its value will be always "not defined".

    To make things more efficient, you should really use loadVars and a reponsed instead of loadVariables Manager. When you use loadVariables, all variables in the clip are sent to your php script that transfer really just data loss. Using loadVars, you specify what vars to send, making the process more efficient. See the docs... everything is in there (with examples).

    BTW... This is the Flash Media Server forum. In the future, you might want to ask questions like this in the general flash or actionscript forum, you will get more answers (more people read on these forums)

  • mail app does not work in a single user

    mail app does not work on my mac for a single user... What do I do?

    Indicates the connection doctor?

    Mail > window > connection doctor

  • My MSN mail program does not work

    My MSN mail program does not work. I had the computer at a Staples office supply store to get a verified cd drive. They said they were doing free computer cleaning. I said yes. When it was finished, I took the computer home and Premium MSN mail program would not be executed. Error messages say files are missing. I downloaded a file and then another message poped saying another file was missing. I got at Staples and I don't think they know how to fix it. I guess that the program needs to be reinstalled. My concern is that there are folders with important emails in them. They are erased if I re-install the program? Where should I go to re - install.

    Hi fla_bill,

    The question you have posted is related to MSN and would be better suited in the MSN support center.

    Please visit the link below to find a community that will provide the support ask you:https://support.msn.com/Default.aspx?&st=1&wfxredirect=1

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Microsoft windows live mail 2011 does not work properly

    Original title: "I'm on windows7 and my windows live mail 2011 does not work correctly." I think that the best way to get there is to uninstall and reinstall... Please provide clear instructions on how to proceed. Any better ideas? »

    I'm on windows7 and my windows live mail 2011 does not work properly. I think that the best way to get there is to uninstall and reinstall... Please provide clear instructions on how to proceed. All the best ideas?

    Ask in the Windows Live Solution Center Mail Portal. Brian Tillman [MVP-Outlook]
    --------------------------------
    https://MVP.support.Microsoft.com/profile/Brian.Tillman
    If a response may help, please vote it as useful. If a response to the problem, please mark it as an answer.

  • E-mail account does not work in Outlook

    Why would one of my e-mail addresses does not work in Outlook, but work in other e-mail programs?

    Why would one of my e-mail addresses does not work in Outlook, but work in other e-mail programs?

    It would be better if repost you Outlook Forum. Here is the main link, and when you're there, you can decide which category you want to use:

    http://social.answers.Microsoft.com/forums/en-us/category/OfficeOutlook

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • I forgot the password and secret your answer, and my e-mail account does not work

    I forgot the password and I forgot the secret answer also, and my e-mail account does not work. I just my alternate email account, but my password is not sent to my alternate email account. any body can help?

    Call your e-mail server. Bruce Hagen ~ MS - MVP [Mail]

  • My mail app does not work why?

    I can't click on the application of mail is anything together I see is @{Microsoft.win

    Hey Jake,

    I understand mail app does not work and you get a name @{Microsoft.win.

    This could be caused due to various reasons:

    • Latest updates.
    • Corrupted mail application.

    Please follow the article below and follow the suggestions and check if this may help:

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    This article will help you with basic as sync licenses and uninstall troubleshooting...

    Hope this information helps, for assistance please answer.

  • A deployed Windows form does not work for MAC users?

    Hello

    I deployed my form in Windows and it works perfectly when used on a Windows computer, but Mac, will refuse to submit the form, AutoSum for price fields does not work, copy & paste bug is and are they record the form Mac and manually send it by electronic mail, the text in each field is invisible until you click the field. Therefore, you will see a field at a time and you can't print it.

    What is the solution to have a form that will work as well on MAC and Windows?

    Thank you very much!

    The problem isn't the form, this is the PDF viewer who are using these users of Mac, which is the preview application. If they use Reader or Acrobat, everything works perfectly.

    Preview does not support JavaScript in PDF files, which is why none of the calculations or formatting work. It also corrupts form fields when a form is saved, which causes the contents of the field not visible. You can get the contents of the field to display if you export the form data to a file using Acrobat and then re - import data from the file. This will cancel all the damage that caused an excerpt, but it will get the contents of the field to display.

  • Contact email form does not work

    I tried to replace the 'simple' contact form and using different e-mail addressed but the form does not return to me.

    I am temp accommodation on Business Catalyst site before going live. All of the suggestions. Thanks, Jim

    Did you follow the suggestions in style and contact forms add form widgets in Adobe Muse.  ?

  • Related problem JRE | Oracle EBS 12.2.4 and Internet Explorer 11.0.9600.17631 | Forms does not work

    Hello

    I'm having some problem with the JRE, the following are details.

    Oracle EBS: 12.2.4

    Internet Explorer: 11.0.9600.17631

    Windows: 8.1 (64)

    Now the problem is, the forms are not loaded in the browser.

    The default page while trying to open a form is telling to install file: oaj2se.exe which does not work.

    also I can use firefox (37.0.2) or chrome (42.0.2311.152 m) for EBS.

    Thank you.

    Shahidul.

    Hi Eric,.

    Please see - recommended browsers for Oracle E-Business Suite Release 12 [389422.1 ID]

    Kind regards

    Kiran

Maybe you are looking for

  • Send photos by mail

    I can't email photos 1.3 an image using e-mail.  I use 10.11.3.  Mail is not highlighted in the extensions.

  • News: The new Toshiba Qosmio F40 specs and photos

    It is brand new Qosmio F40 to come:- http://www.TechFresh.NET/WP-content/uploads/2007/05/toshiba_06-thumb.jpg http://pcjoint.com/wp-content/uploads/2007/05/Toshiba-Qosmio-F40-multimedia-notebook.jpg http://www.NewLaunches.com/entry_images/0507/09/tos

  • Photosmart 7510: 7510 printer recognizes usb connection NO wifi

    I don't use USB wifi printer. I can't find a way to make it READY, it shows offline.  I looked for the settings, but it seems that all are related to the WIFI The printer appears as my default on my laptop.

  • Dynamically control the size (in pixels) of elements of array?

    Hey everybody, I am writing a great vi where space façade becomes a limitation.   One of the elements I want to display is an array of Boolean flags (rectangular LED) 2D.  Is it possible to dynamically resize the elements of the array so that regardl

  • Computer runs very, very slowly.

    Computer is about 5 years. Very slow response when you perform simple activities such as Excel, viewing, and editing. To make a temporary fix, I do clean disk and Defrag the c: drive. Good for a few days and then cpu becomes slow again. Would make pe