Hi, new to php, why do I get this syntax error?
Posted: Sat Dec 13, 2008 6:45 pm
I have just completed my new domain and I am trying to implement a short php script on it. When I am trying to load the page, I get an error code. I had gotten the php code from another developer on another website, and its suppose to work. Here is the website coding.
Upon loading the webpage in the browser, I get the following syntax error...
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content /w/e/b/webcamsdr/html/index.php on line 8
and line 8 is :
echo "<body onload="javascript:frmClickTracking.submit();">";
Am I missing something? I only have this one page on my website.
Code: Select all
<?php
$site1 = "http://www.<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>.com";
$affiliate_link = "http://www.webcams.com/link.php?reseller=craigsbatter45&rev=0&type=2&misc1=&misc2=&_u=/index.php?page=join&mcat_id=";
if($_SERVER['HTTP_REFERER'] == $site1)
{
echo "<body onload="javascript:frmClickTracking.submit();">";
echo "<form action="" . $affiliate_link . "" method="post" name="frmClickTracking">";
echo "</form>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #1F1B1C;
}
-->
</style></head>
<body>
<div align="center"><img src="file:///C|/Users/donkeykongbutter/Documents/affilate landing page right size copy.jpg" width="1200" height="879" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="426,329,1137,457" href="http://www.webcams.com/link.php?reseller=craigsbatter45&rev=0&type=2&misc1=&misc2=&_u=/index.php?page=join&mcat_id=" />
</map>
</div>
</body>
</html>
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content /w/e/b/webcamsdr/html/index.php on line 8
and line 8 is :
echo "<body onload="javascript:frmClickTracking.submit();">";
Am I missing something? I only have this one page on my website.