Desde ya gracias y no se que es lo que me lia las cosas
Código PHP:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
require('config.php');
$enlace = mysql_connect($host, $usuario, $password);
mysql_select_db($db,$enlace);
$fecha = time();
if(empty($identificador)){
$identificador=0;
}
$respuesta = $respuestas+1;
$sql = "INSERT INTO " .$extencion."foro (autor, titulo, mensaje, fecha, identificador) ";
$sql .="VALUES ('$autor', '$titulo', '$mensaje', '$fecha', '$identificador') ";
mysql_query($sql);
$sql2 ="UPDATE " .$extencion."foro SET respuestas = '$respuesta' WHERE id = '$identificador';
mysql_query($sql2);
mysql_close();
--->header("Refresh: 3; URL=/index.php");<---
?>
</body>
</html>