Parse error: syntax error, unexpected T_STRING in ..........
Posted: Mon Mar 10, 2008 1:00 pm
Everah | Please use the appropriate bbCode tags when posting code in the forms. You can use [code], [{lang}] or [syntax="{lang}"] where {lang} is the language you want to highlight as.
Everah | Please post in the correct forums.
Hi ! i'm facing t- String error for my feebback form
Parse error: syntax error, unexpected T_STRING in /home/ezines/public_html/savefeedback.php on line 19
below is the code.. pls help me to figure out the problem
------------------------------------------------------------
-------------------------------------------------------------------------------------
Problem can be seen at http://www.ezinesindia.com/inquiry.php
thanx
Sabs
Everah | Please use the appropriate bbCode tags when posting code in the forms. You can use [code], [{lang}] or [syntax="{lang}"] where {lang} is the language you want to highlight as.
Everah | Please post in the correct forums.
Hi ! i'm facing t- String error for my feebback form
Parse error: syntax error, unexpected T_STRING in /home/ezines/public_html/savefeedback.php on line 19
below is the code.. pls help me to figure out the problem
------------------------------------------------------------
Code: Select all
<?php
ob_start();
echo "<pre>";
print_r($_POST);
$con = mysql_connect("localhost","ezines_india","ezines123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("ezines_inquiry",$con);
mysql_query("INSERT INTO ezines_inquiry VALUES ('".$_POST['name']."', '".$_POST['address']."','".$_POST['phone']."','".$_POST['email']."','".$_POST['comments']."')");
$msg = "Thank You for Your Inquiry.\n\nWe will get back to you shortly.\n\nWith Best Regards\nSaba";
mail($_POST['email'],"Inquiry Mail",$msg);
$msg = "Name : ".$_POST['name']."\nAddress : ".$_POST['address']."\nPhone : ".$_POST['phone']."\nEmail : ".$_POST['email']."\nComments : ".$_POST['comments'];
mail("ansari_saba@yahoo.co.in","Inquiry Mail",$msg)
mysql_close($con);
header("Location: thanks.php");
?>Problem can be seen at http://www.ezinesindia.com/inquiry.php
thanx
Sabs
Everah | Please use the appropriate bbCode tags when posting code in the forms. You can use [code], [{lang}] or [syntax="{lang}"] where {lang} is the language you want to highlight as.