HI! I have this code:
And this one recives the data from the above one:HTML Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Agregar Server</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form method="post" action="rec_datos.php"> Nombre:<input type="Text" name=Id_server"><br> pagina:<input type="Text" name="pagina"><br> IP:<input type="Text" name="ip"><br> Puerto:<input type="Text" name="puerto"><br> <input type="Submit" name ="enviar" value="Aceptar informacion"> </form> </body> </html>
As you can see it is just a reg page...PHP Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Datos Recividos</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
include("config.php")
//process form
$sql = "insert into muservers(Id_server, exp, drop, pagina, ip, puerto).VALUES('$Id_server','$exp','$drop','$ip','$puerto',$pagina')";
$result = mysql_query($sql);
echo "Hemos recivido los datos de su servidor.\n";
?>
</body>
</html>
Well.. the problem is that when I press the buttom to send the data, the second page gives me this error:
That line is this:Parse error: parse error, unexpected T_VARIABLE in /www/2gamers.com.ar/htdocs/servers/rec_datos.php on line 12
Can you tell me what is wrong with this?. As you can see my english might not be so good, so please excuse me...PHP Code:$sql = "insert into muservers(Id_server, exp, drop, pagina, ip, puerto).VALUES('$Id_server','$exp','$drop','$ip','$puerto',$pagina')";
I hope you can help me...
Thanks!




Reply With Quote