WHY IS THIS NOT WORKING?

why is this not working??

[php]echo"
<form method=‘post’ action=‘download.php?id=".intval($_GET[‘id’])."’>






				<div style='clear:both'></div>
					</div>
					</form>";[/php]

[php]include(“connect.php”);
session_start();
if (!isset($_SESSION[‘id’])) {

}
else
{
if (isset($_POST[‘comment’]))
{
$id = intval($_GET[‘id’]);
$myid = $_SESSION[‘id’];
$text= addslashes($_POST[‘text’]);
$date = date(‘m.d.Y H:i:s’);
$sql = “INSERT INTO comments (post_id,poster_id,text,date) VALUES (’$id’,$myid’,’$text’,’$date’)”;
mysqli_query($conn,$sql);
mysqli_close($conn);
header(“Location: download.php?id=$id”);

}
}[/php]

What isn’t working as expected, do you get any errors?

Sponsor our Newsletter | Privacy Policy | Terms of Service