Hey guys, so everytime i fill out the form and it redirects to this php page it gives me this syntax error: Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\Runescape-Web\site\create.php on line 23.
I really don't know what to do.
Please help :queasy:

<?php 
$website = $_POST['website']; 
$ip = $_POST['server-ip']; 
$webclient = $_POST['webclient'];
$hiscores = $_POST['hiscores'];
$forum = $_POST['forum'];
$File = "$website.php";
$donate = $_POST['donate'];
$logo = $_POST['logo'];
$newtitle = $_POST['title'];
$news = $_POST['news'];
$chatbox = $_POST['chatbox'];
$staff = $_POST['staff'];


if (file_exists($File)) { 
print "Website/Server Already In Use.";
fclose($Handle);
}
 $Handle = fopen($File, 'w');
 $Data = "
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:ie="">
<head>

<META NAME="DESCRIPTION" CONTENT="A free Runescape server for everyone.">
<META NAME="KEYWORDS" CONTENT="Runescape, Private Server">

<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta name="MSSmartTagsPreventParsing" content="TRUE"><title>Runescape Private Server</title>

<link href="runescape_files/basic-3.css" rel="stylesheet" type="text/css" media="all">
<script src="thumbnailviewer.js" type="text/javascript"></script>
<link rel="stylesheet" href="thumbnailviewer.css" type="text/css" />
<link href="runescape_files/title-6.css" rel="stylesheet" type="text/css" media="all"><style type="text/css">a.UserScriptUpdatesNotification, ol.UserScriptUpdatesNotification { display: none; position: absolute !important; position: fixed !important; bottom: 0 !important; right: 0 !important; margin: 0 !important; font-family: sans-serif; cursor: default; }
a.UserScriptUpdatesNotification { border: 2px solid white; padding: 3px; font: bold x-small sans-serif; line-height: 150%; text-decoration: none !important; color: white; background-color: red; }
ol.UserScriptUpdatesNotification { list-style-type: none !important; max-width: 90% !important; max-height: 90% !important; overflow: auto; border: 0 !important; padding: 0 !important; }
ol.UserScriptUpdatesNotification li { display: table-row !important; margin: 0 !important; border: 0px solid silver !important; border-top-width: 1px !important; padding: 0 !important; color: silver; background-color: maroon; }
ol.UserScriptUpdatesNotification li a { display: table-cell !important; white-space: nowrap !important; padding: 2px; color: inherit !important; background-color: transparent !important; }
ol.UserScriptUpdatesNotification li a:first-child { padding-right: .3em !important; text-decoration: none !important; }
ol.UserScriptUpdatesNotification.hover{ display: block; border-collapse: collapse; }
ol.UserScriptUpdatesNotification li:hover { color: white; background-color: red; }</style></head><body>

<div id="body">
<div>
<div style="text-align: center; margin-bottom: 10px; position: relative;">
<center>
<img src="$logo" alt="RuneScape"><br>
</div>
</div>
<div class="left">

<fieldset class="menu">
<legend>Website Main</legend>
<ul>
<li class="i-world"><a href="index.php">Site Home</a></li>
<li class="i-play"><a href="$webclient">Web Client</a></li>
<li class="i-score"><a href="$hiscores">Hiscores</a></li>
<li class="i-forum"><a href="$forums" target="_blank">Forums</a></li>
<li class="i-sub"><a href="$donate">Donate</a></li>
</ul>
</fieldset>
<fieldset class="menu">
<legend>Chat Box</legend>
<ul>
<li class="i-forum"><a href=$chatbox" target="_blank">Chat Box</a></li>
</ul>
</fieldset>
<fieldset class="menu mem">
<legend>User Management</legend>
<ul>
<li class="i-create"><a href="index.php?action=newchar">New Character</a></li>
<li class="i-pw"><a href="index.php?action=changepass">Change your password</a></li>
</ul>
</fieldset>

<fieldset class="menu">
<legend>Knowledge Base</legend>
<ul>
<li class="i-rules"><a href="index.php?action=rules">Rules</a></li>
<li class="i-manual"><a href="index.php?action=manual">Manual</a></li>
<li class="i-mod">&nbsp;<a href="$staff">Staff List</a></li>
<li class="i-world"><a href="index.php?action=items">Items</a></li>
<li class="i-world"><a href="index.php?action=npcs">NPCs</a></li>
</ul>
</fieldset>
<fieldset class="menu">
<legend>Clan System</legend>
<ul>
<li class="i-create"><a href="index.php?action=clanlist">Clan List/Join Clan</a></li>
<li class="i-create"><a href="index.php?action=createclan">Create Clan</a>
<li class="i-create"><a href="index.php?action=leaveclan">Leave Clan</a>
<li class="i-create"><a href="index.php?action=manageclan">Manage Clan</a>
</ul>
</li>
</fieldset>


<fieldset class="menu">
<legend>Moderator Access Only</legend>
<ul>
<?php

if($_SESSION['mgroup'] == 7 || $_SESSION['mgroup'] == 4) {
echo '<li class="i-story"><a href="index.php?action=srules">Staff Rules</a></li>';	}
else{
echo '<li class="i-pmod">Coming Soon</li>';
}?>
</ul>
</fieldset>

<fieldset class="menu">
<legend>Administrator Access Only</legend>
<ul>
<?php
if($_SESSION['mgroup'] == 6 || $_SESSION['mgroup'] == 4) {

echo '<li class="i-story"><a href="index.php?action=srules">Staff Rules</a></li>';
if($_SESSION['mgroup'] == 4) {
echo '<li class="i-pmod"><a href="index.php?action=administration">Manage Players</a></li>';
} else {
echo '<li>Manage Players (<i>Owner(s) only</i>)</li>';
}
} else {
echo '<li class="i-mod">Coming Soon</li>';
}?>
</ul>
</fieldset>

<fieldset class="menu">
<legend>Partners</legend>
<ul>
<li class="i-msg"><a href="index.php">None</a></li>
</ul>
</li>
</fieldset>

<div style="font-size:11px;">
<?php
$time = time();
$time15 = time() - (15 * 60);
echo '<br><b>Users currently online on website:</b><br>';
$mysql = mysql_query("SELECT * FROM uber3_players WHERE sitelastaction >= '".$time15."' ORDER BY mgroup ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($mysql)){
$color = "#33ff00";
if($row['mgroup'] == 4)
$color = "red";
if($row['mgroup'] == 6)
$color = "yellow";
if($row['mgroup'] == 7)
$color = "white";

echo '<font color="'.$color.'">'.$row['name'].'</font>, ';
}
echo '<br>';
?>
</div>
</div>
<div align=right>
<?php			
if(loggedIn()) {
echo 'Welcome back, '.$_SESSION['username'].'! (<a href="index.php?action=logout">Logout</a>)';
				$mysql = mysql_query("UPDATE `runescape`.`uber3_players` SET `sitelastaction` = ".$time." WHERE `uber3_players`.`id` ='".$_SESSION['dbid']."' LIMIT 1 ;");
}
echo '</div>';?>
<div class="newscontainer">

<img class="narrowscroll-top"style="z-index:5" src="runescape_files/scroll457_top.gif" alt="" height="50" width="466">
<div class="narrowscroll-bg">
<div class="narrowscroll-bgimg">
<div class="narrowscroll-content">
<dl class="news scroll"><?php
if(file_exists('site/'.$_GET['action'].'.php')) {
include('site/'.$_GET['action'].'.php');
} else {
?>
<center>
<img src=runescape_files/recent_news.gif><br><br>
<h1>$newtitle</h1>
<br><br><hr><br><br>
$news
</center>

<script language="javascript">
 function cm() {
      var response=window.confirm("Upon clicking OK, you will be sent to the official client page. The client is no longer hosted on this site, but is now on a much faster page. This site is secure but if you do not trust it, click Cancel. Otherwise, click OK.");
      if (response) document.location.href="client.php";
 }

  window.scroll(0,0);
 </script>

<?php
}
?></dl>
</div>
</div>
</div>
<img class="narrowscroll-bottom" src="runescape_files/scroll457_bottom.gif" alt="" height="50" width="466">
</div>
<div class="tandc">
<br><br><br><br><br><br>
<img src=images/status.php>
</div>
</div>

<a href="javascript:void(0);" class="UserScriptUpdatesNotification"></a><ol class="UserScriptUpdatesNotification"></ol>
</body></html>";
 fwrite($Handle, $Data);
echo '<h3>Website has been created!</h3>';
echo '<b>Use this link: http://67.247.46.252/Runescape-Web/'. $website .'</b>';
 fclose($Handle);
 ?>

    See the PHP manual page for a [man]string[/man]; you used double quotes to delimit the string, so any literal double quotes inside the string must be escaped (e.g. prepended with a backslash).

      Write a Reply...