Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/07/2014, 11:20
alejandroil
 
Fecha de Ingreso: junio-2014
Mensajes: 50
Antigüedad: 9 años, 10 meses
Puntos: 1
Error not acceptable

Mi última duda de hoy, lo prometo! =(

Quiero insertar parte de una frase en una base de datos.

Hola:que tal

quiero insertar "que tal"

entonces hago lo siguiente:

Un formulario que tu introduces "Hola:que tal"

y para insertarlo en la base de datos hago esto:


if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$frase1 = $_POST['frase'];
$separacion = explode(':',$frase1);
$insertSQL = sprintf("INSERT INTO frases (frase) VALUES (%s)",
$separacion[1]);

mysql_select_db($database_conexion, $conexion);
$Result1 = mysql_query($insertSQL, $conexion) or die(mysql_error());

$insertGoTo = "login.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}


pero el problema está que al aceptar el formulario me sale por pantalla el siguiente error:

Not Acceptable

An appropriate representation of the requested resource /login.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



¿Que tengo que hacer?


Muchisimas gracias =)