while executing the below program i am getting the error "Parse error: syntax error, unexpected '<<' (T_SL) in C:\xampp\htdocs\registration.php on line 5" . can i get some help ??
<?php
extract($_POST);
include "connection.php";
$link= md5($txtuname);
$str= <<<abc
account is created click on the activation link <a href="http://abc.com/active.php?$link">click </a>
abc;
if(mysql_query("insert tbl_user values ('$txtuname','$txtpwd','$txtemail','0','$link')"))
{
echo "registration completed";
mail($txtemail,"activation link", "$str","from: admin@abc.com \r \n content type:text/html");
}
else
{
if (mysql_error()==1062)
{
echo "username exist";
}
}
?>