New
#11
All my code right here , yet I used this and I got those 3 errors again
<?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['me - Pastebin.com
All my code right here , yet I used this and I got those 3 errors again
<?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['me - Pastebin.com
Script starts with:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = "rh_cs@outlook.com";
$subject = "New Message";
replace with:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = "rh_cs@outlook.com";
$subject = "New Message";
$strValidationMessage = "";
So just add a line. This initializes viariable strValidationMessage. Otherwise it isn't initialized on first load (when you didn't press submit yet).
Post results
And move (not copy):
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
To after:
if (isset($_POST['submit']))
{
----------
name,email and message haven't been defined yet (on initial load before clicking submit)
Post results
I have NOTICE errors disabled. Users like me don't see them. They are only logged in apache.log. That's why I didn't notice them. I do display them in log file and during development
Yes it says message has been send but I don't actually see the message when I go to my email account. When I go to my contact link this what happens
![]()
After I enter the info , this what happens , but it doesn't send.
<?php if (isset($_POST['submit'])) { $name = $_POST['name']; $email = - Pastebin.com
The code you send me before worked perfect for you while testing?
mail($to, $subject, $message, "From: " .$name);
must be moved as well:
if($boolValidateOK == 1)
{
mail($to, $subject, $message, "From: " .$name);
$strValidationMessage = "Email Has been Sent.";
}