Jump to content

Recommended Posts

I got my error reporting on and am running in to a few errors, never seen these before and not sure why I'm getting them.

 

Here they are:

Notice: Undefined variable: content in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 43

 

Notice: Undefined index: namef in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 94

 

Notice: Undefined index: emailf in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 97

 

Notice: Undefined index: subjectf in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 100

 

 

Here's the file:

<?php

header("Cache-control: private");
if (isset ($_POST['submit'])) {
$problem = FALSE;

if (empty ($_POST['namef'])) {
$problem = TRUE;
}
if (empty ($_POST['subjectf'])) {
$problem = TRUE;
}
if (empty ($_POST['emailf'])) {
$problem = TRUE;
}
if (empty ($_POST['messagef'])) {
$problem = TRUE;
}


if (!$problem) {
$namef = $_POST['namef'];
$subjectf = $_POST['subjectf'];
$emailf = $_POST['email'];
$messagef = $_POST['messagef'];


$sendmail = "
$namef
$emailf
$subjectf
$messagef

";
mail ('aebstract@gmail.com', 'Vengeance - Contact Form', $sendmail, 'From: $emailf');

header("Location: site.php?page=contact&msg=sent");
}


}

$content .= <<<html
<p class="bodycontent">

<table width="750">
<tr>
<td valign="top" width="350">



<center>

Phone: 678-513-7105<br />
Fax: 678-513-7063<br /><br /><br />
Monday - Friday: 10:00am - 5:00pm<br />
(Close 12:00 noon - 1:00pm)<br />
Saturday - By Appointment Only<br /><br />


Mike (Owner/President)<br />
<a href="mailto:mike@vengeancerd.com">mike@vengeancerd.com</a><br /><br />

Ron Mowen (General Manager/Sales)<br />
<a href="mailto:ron@vengeancerd.com">ron@vengeancerd.com</a><br /><br />

Buddy Daniel (Project Specialist/Technician)<br />
<a href="mailto:buddy@vengeancerd.com">buddy@vengeancerd.com</a><br /><br />

Charlie Hill (Pedders Suspension Specialist)<br />
<a href="mailto:charlieh@vengeancerd.com">charlieh@vengeancerd.com</a><br /><br />


</center>



</td>
<td align="right">

html;

if (isset($_GET['msg'])){
$content .= <<<html
Thank you. Your message has been received and will be viewed shortly.
html;
} else {
$content .= <<<html
<form method="POST" action="site.php?page=contact" name="contact">

<table>
<tr><td valign="top" align="right">

Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="$_POST[namef]" />
</td></tr>
<tr><td valign="top" align="right">
Email: </td><td> <input type="text" class="txt" name="emailf" maxlength="20" size="20" value="$_POST[emailf]" />
</td></tr>
<tr><td valign="top" align="right">
Subject: </td><td> <input type="text" class="txt" name="subjectf" maxlength="20" size="20" value="$_POST[subjectf]" />
</td></tr>
<tr><td valign="top" align="right">
Message: </td><td> <textarea name="messagef" cols="36" rows="4" class="txt"></textarea>
</td></tr>
<tr><td></td><td align="right">
<input type="submit" value="Send" />
</td>
</tr>
</table>


</form>
html;
}
$content .= <<<html
</td>
</tr>
</table>

<br /><br />
<center>
241 Castleberry Industrial Drive, Suite B<br />
Cumming, GA 30040
<br />


<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&output=embed&s=AARTsJoOEagJWyUHYTOwV8tNEUfVYaHWXQ"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&source=embed" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small>
</center>



</p>
html;

?>

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/
Share on other sites

Notice: Undefined variable: content in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 43

No varaible called that, it should look like

$content = 

Note the missing .

Notice: Undefined index: namef in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 94

And the form input fields must be called the same as that.

e.g.

$var1 = $_POST['field1'];//this will cause error , it should be $_POST['field'];

<input type="text" name="field">

 

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683888
Share on other sites

No i didn't , and if you want help i would be a little more polite?

 

Is this the line with the first index error?

Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="$_POST[namef]" />

If so it is because of it missing '' in the $_POST

Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="$_POST['namef']" />

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683917
Share on other sites

If I put the ' ' inside the post like that, I return the following error:

 

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 94

 

 

About the being polite, I wasn't being too rude if you seriously did not even see the massive chunk of code sitting in the opening topic post and then 2 posts down ask me to post the code :/

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683923
Share on other sites

Try

<?php
header("Cache-control: private");
if(isset($_POST['submit']))
{
$problem = FALSE;
if (empty ($_POST['namef'])) 
{
	$problem = TRUE;
}
if (empty ($_POST['subjectf'])) 
{
	$problem = TRUE;
}
if (empty ($_POST['emailf'])) 
{
	$problem = TRUE;
}

if (empty ($_POST['messagef'])) 
{
	$problem = TRUE;
}

if(!$problem) 
{
	$namef = $_POST['namef'];
	$subjectf = $_POST['subjectf'];
	$emailf = $_POST['email'];
	$messagef = $_POST['messagef'];
	$sendmail = "
		$namef
		$emailf
		$subjectf
		$messagef
	";
	//THis code has some big secuirty issues
mail ('aebstract@gmail.com', 'Vengeance - Contact Form', $sendmail, 'From: '.$emailf.'');
header("Location: site.php?page=contact&msg=sent");
}
?>
<html>
<p class="bodycontent">

<table width="750">
<tr>
<td valign="top" width="350">



<center>

Phone: 678-513-7105<br />
Fax: 678-513-7063<br /><br /><br />
Monday - Friday: 10:00am - 5:00pm<br />
(Close 12:00 noon - 1:00pm)<br />
Saturday - By Appointment Only<br /><br />


Mike (Owner/President)<br />
<a href="mailto:mike@vengeancerd.com">mike@vengeancerd.com</a><br /><br />

Ron Mowen (General Manager/Sales)<br />
<a href="mailto:ron@vengeancerd.com">ron@vengeancerd.com</a><br /><br />

Buddy Daniel (Project Specialist/Technician)<br />
<a href="mailto:buddy@vengeancerd.com">buddy@vengeancerd.com</a><br /><br />

Charlie Hill (Pedders Suspension Specialist)<br />
<a href="mailto:charlieh@vengeancerd.com">charlieh@vengeancerd.com</a><br /><br />


</center>



</td>
<td align="right">
<?php
if (isset($_GET['msg']))
{
$content ="Thank you. Your message has been received and will be viewed shortly.";
} 
else 
{
?>
<form method="POST" action="site.php?page=contact" name="contact">

<table>
<tr><td valign="top" align="right">

Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="<?php if(isset($_POST['namef'])){echo $_POST['namef'];}?>" />
</td></tr>
<tr><td valign="top" align="right">
Email: </td><td> <input type="text" class="txt" name="emailf" maxlength="20" size="20" value="<?phpif(isset($_POST['emailf'])){echo $_POST['emailf'];}?>" />
</td></tr>
<tr><td valign="top" align="right">
Subject: </td><td> <input type="text" class="txt" name="subjectf" maxlength="20" size="20" value="<?phpif(isset($_POST['subjectf'])){echo$_POST['subjectf'];}?>" />
</td></tr>
<tr><td valign="top" align="right">
Message: </td><td> <textarea name="messagef" cols="36" rows="4" class="txt"></textarea>
</td></tr>
<tr><td></td><td align="right">
<input type="submit" value="Send" />
</td>
</tr>
</table>


</form>
<?php
}
?>
</td>
</tr>
</table>

<br /><br />
<center>
241 Castleberry Industrial Drive, Suite B<br />
Cumming, GA 30040
<br />


<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&output=embed&s=AARTsJoOEagJWyUHYTOwV8tNEUfVYaHWXQ"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&source=embed" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small>
</center>



</p>

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683933
Share on other sites

Ok, would of helped if you said that , although i don't see why , it doesn't seem a very logical way to do it, but first test it as it may show you where the error was, and if not then post the code with all the changes you made so i can see where the

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 94
came from
Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683942
Share on other sites

I haven't made a single change except for taking the . off of the first instance of $content on that page. The entire file is posted.. I shouldn't have to state that I am using variables on my page for a reason, it should be a given. Does anyone know what would cause this issue rather than guesses and stabs?

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683953
Share on other sites

If I put the ' ' inside the post like that, I return the following error:

 

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 94

This is a change!

Please if you want help follow peoples advice, these aren't guesses and stabs, it is deduction.

Post the changes that causes this.

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683960
Share on other sites

You told me to put ' ' around the variables. $_POST['BLA']..... and I reply with an error caused by that. Come on..

 

 

 

EDIT: ENJOY -

<?php

header("Cache-control: private");
if (isset ($_POST['submit'])) {
$problem = FALSE;

if (empty ($_POST['namef'])) {
$problem = TRUE;
}
if (empty ($_POST['subjectf'])) {
$problem = TRUE;
}
if (empty ($_POST['emailf'])) {
$problem = TRUE;
}
if (empty ($_POST['messagef'])) {
$problem = TRUE;
}


if (!$problem) {
$namef = $_POST['namef'];
$subjectf = $_POST['subjectf'];
$emailf = $_POST['email'];
$messagef = $_POST['messagef'];


$sendmail = "
$namef
$emailf
$subjectf
$messagef

";
mail ('aebstract@gmail.com', 'Vengeance - Contact Form', $sendmail, 'From: $emailf');

header("Location: site.php?page=contact&msg=sent");
}


}

$content = <<<html
<p class="bodycontent">

<table width="750">
<tr>
<td valign="top" width="350">



<center>

Phone: 678-513-7105<br />
Fax: 678-513-7063<br /><br /><br />
Monday - Friday: 10:00am - 5:00pm<br />
(Close 12:00 noon - 1:00pm)<br />
Saturday - By Appointment Only<br /><br />


Mike (Owner/President)<br />
<a href="mailto:mike@vengeancerd.com">mike@vengeancerd.com</a><br /><br />

Ron Mowen (General Manager/Sales)<br />
<a href="mailto:ron@vengeancerd.com">ron@vengeancerd.com</a><br /><br />

Buddy Daniel (Project Specialist/Technician)<br />
<a href="mailto:buddy@vengeancerd.com">buddy@vengeancerd.com</a><br /><br />

Charlie Hill (Pedders Suspension Specialist)<br />
<a href="mailto:charlieh@vengeancerd.com">charlieh@vengeancerd.com</a><br /><br />


</center>



</td>
<td align="right">

html;

if (isset($_GET['msg'])){
$content .= <<<html
Thank you. Your message has been received and will be viewed shortly.
html;
} else {
$content .= <<<html
<form method="POST" action="site.php?page=contact" name="contact">

<table>
<tr><td valign="top" align="right">

Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="$_POST['namef]'" />
</td></tr>
<tr><td valign="top" align="right">
Email: </td><td> <input type="text" class="txt" name="emailf" maxlength="20" size="20" value="$_POST['emailf']" />
</td></tr>
<tr><td valign="top" align="right">
Subject: </td><td> <input type="text" class="txt" name="subjectf" maxlength="20" size="20" value="$_POST['subjectf']" />
</td></tr>
<tr><td valign="top" align="right">
Message: </td><td> <textarea name="messagef" cols="36" rows="4" class="txt"></textarea>
</td></tr>
<tr><td></td><td align="right">
<input type="submit" value="Send" />
</td>
</tr>
</table>


</form>
html;
}
$content .= <<<html
</td>
</tr>
</table>

<br /><br />
<center>
241 Castleberry Industrial Drive, Suite B<br />
Cumming, GA 30040
<br />


<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&output=embed&s=AARTsJoOEagJWyUHYTOwV8tNEUfVYaHWXQ"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&source=embed" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small>
</center>



</p>
html;

?>

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683965
Share on other sites

Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="$_POST['namef]'" />

 

This is the problem it should be

Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="$_POST['namef']" />

 

Edit: This is why i said post it, next time you might want to just do it as it will help fix your problem faster.

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683967
Share on other sites

Actually, no. I had removed the 's and threw them back in real fast to post it for you, then had the typo. Same error with this "fix":

 

<?php

header("Cache-control: private");
if (isset ($_POST['submit'])) {
$problem = FALSE;

if (empty ($_POST['namef'])) {
$problem = TRUE;
}
if (empty ($_POST['subjectf'])) {
$problem = TRUE;
}
if (empty ($_POST['emailf'])) {
$problem = TRUE;
}
if (empty ($_POST['messagef'])) {
$problem = TRUE;
}


if (!$problem) {
$namef = $_POST['namef'];
$subjectf = $_POST['subjectf'];
$emailf = $_POST['email'];
$messagef = $_POST['messagef'];


$sendmail = "
$namef
$emailf
$subjectf
$messagef

";
mail ('aebstract@gmail.com', 'Vengeance - Contact Form', $sendmail, 'From: $emailf');

header("Location: site.php?page=contact&msg=sent");
}


}

$content = <<<html
<p class="bodycontent">

<table width="750">
<tr>
<td valign="top" width="350">



<center>

Phone: 678-513-7105<br />
Fax: 678-513-7063<br /><br /><br />
Monday - Friday: 10:00am - 5:00pm<br />
(Close 12:00 noon - 1:00pm)<br />
Saturday - By Appointment Only<br /><br />


Mike (Owner/President)<br />
<a href="mailto:mike@vengeancerd.com">mike@vengeancerd.com</a><br /><br />

Ron Mowen (General Manager/Sales)<br />
<a href="mailto:ron@vengeancerd.com">ron@vengeancerd.com</a><br /><br />

Buddy Daniel (Project Specialist/Technician)<br />
<a href="mailto:buddy@vengeancerd.com">buddy@vengeancerd.com</a><br /><br />

Charlie Hill (Pedders Suspension Specialist)<br />
<a href="mailto:charlieh@vengeancerd.com">charlieh@vengeancerd.com</a><br /><br />


</center>



</td>
<td align="right">

html;

if (isset($_GET['msg'])){
$content .= <<<html
Thank you. Your message has been received and will be viewed shortly.
html;
} else {
$content .= <<<html
<form method="POST" action="site.php?page=contact" name="contact">

<table>
<tr><td valign="top" align="right">

Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="$_POST['namef']" />
</td></tr>
<tr><td valign="top" align="right">
Email: </td><td> <input type="text" class="txt" name="emailf" maxlength="20" size="20" value="$_POST['emailf']" />
</td></tr>
<tr><td valign="top" align="right">
Subject: </td><td> <input type="text" class="txt" name="subjectf" maxlength="20" size="20" value="$_POST['subjectf']" />
</td></tr>
<tr><td valign="top" align="right">
Message: </td><td> <textarea name="messagef" cols="36" rows="4" class="txt"></textarea>
</td></tr>
<tr><td></td><td align="right">
<input type="submit" value="Send" />
</td>
</tr>
</table>


</form>
html;
}
$content .= <<<html
</td>
</tr>
</table>

<br /><br />
<center>
241 Castleberry Industrial Drive, Suite B<br />
Cumming, GA 30040
<br />


<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&output=embed&s=AARTsJoOEagJWyUHYTOwV8tNEUfVYaHWXQ"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&source=embed" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small>
</center>



</p>
html;

?>

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683976
Share on other sites

Ok, i would then suggest maybe doing

<?php
$content = "
<p class=\"bodycontent\">

<table width=\"750\">
<tr>
<td valign=\"top\" width=\"350\">



<center>

Phone: 678-513-7105<br />
Fax: 678-513-7063<br /><br /><br />
Monday - Friday: 10:00am - 5:00pm<br />
(Close 12:00 noon - 1:00pm)<br />
Saturday - By Appointment Only<br /><br />


Mike (Owner/President)<br />
<a href=\"mailto:mike@vengeancerd.com\">mike@vengeancerd.com</a><br /><br />

Ron Mowen (General Manager/Sales)<br />
<a href=\"mailto:ron@vengeancerd.com\">ron@vengeancerd.com</a><br /><br />

Buddy Daniel (Project Specialist/Technician)<br />
<a href=\"mailto:buddy@vengeancerd.com\">buddy@vengeancerd.com</a><br /><br />

Charlie Hill (Pedders Suspension Specialist)<br />
<a href=\"mailto:charlieh@vengeancerd.com\">charlieh@vengeancerd.com</a><br /><br />


</center>



</td>
<td align=\"right\">
";
if (isset($_GET['msg'])){
$content .= "
Thank you. Your message has been received and will be viewed shortly.
";
} else {
$content .= "
<form method=\"POST\" action=\"site.php?page=contact\" name=\"contact\">

<table>
<tr><td valign=\"top\" align=\"right\">

Name: </td><td> <input type=\"text\" class=\"txt\" name=\"namef\" maxlength=\"20\" size=\"20\" value=\"".$_POST['namef']."\" />
</td></tr>
<tr><td valign=\"top\" align=\"right\">
Email: </td><td> <input type=\"text\" class=\"txt\" name=\"emailf\" maxlength=\"20\" size=\"20\" value=\"".$_POST['emailf']."\" />
</td></tr>
<tr><td valign=\"top\" align=\"right\">
Subject: </td><td> <input type=\"text\" class=\"txt\" name=\"subjectf\" maxlength=\"20\" size=\"20\" value=\"".$_POST['subjectf']."\" />
</td></tr>
<tr><td valign=\"top\" align=\"right\">
Message: </td><td> <textarea name=\"messagef\" cols=\"36\" rows=\"4\" class=\"txt\"></textarea>
</td></tr>
<tr><td></td><td align=\"right\">
<input type=\"submit\" value=\"Send\" />
</td>
</tr>
</table>


</form>
";
}
$content .= "
</td>
</tr>
</table>

<br /><br />
<center>
241 Castleberry Industrial Drive, Suite B<br />
Cumming, GA 30040
<br />


<iframe width=\"425\" height=\"350\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&output=embed&s=AARTsJoOEagJWyUHYTOwV8tNEUfVYaHWXQ\"></iframe><br /><small><a href=\"http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&source=embed\" style=\"color:#0000FF;text-align:left\" target=\"_blank\">View Larger Map</a></small>
</center>



</p>
";

?>

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683979
Share on other sites

copy/pasted your code:

 

Notice: Undefined index: namef in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 51

 

Notice: Undefined index: emailf in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 54

 

Notice: Undefined index: subjectf in /homepages/12/d224766608/htdocs/web-vrd/new/contact.php on line 57

Link to comment
https://forums.phpfreaks.com/topic/131669-email-form-errors/#findComment-683998
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.