error script
Posted: Wed Jul 22, 2009 2:58 pm
Code: Select all
<?
$id=$_GET['id'];
<table>
<form action='add_topic.php' method='post'>
<tr><td>Name</td><td>:</td><td><input type='text' id='name' name='name' /></td></tr>
<tr><td>Email</td><td>:</td><td><input type='text' id='mail' name='mail' /></td></tr>
<tr><td>Title</td><td>:</td><td><input type='text' id='title' name='title' /></td></tr>
<tr><td valign='top'>Post</td><td valign='top'>:</td><td><textarea id='post' name='post' rows='7'></textarea></td></tr>
<tr><td> </td><td> </td><td><input type='submit' value='Post Topic' /> <input type='reset' value='Reset Fields' /></td></tr>
<input type='hidden' id='cat_id' name='cat_id' value='".$id."' />
</form>
</table>
?>error
Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\customo\create_topic.php on line 3
where is the prob
and this is the browser adress when this script is called http://localhost/customo/create_topic.php?id=1