cambia esto
Código PHP:
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="599" height="46" align="center" valign="middle">
<?php echo $_GET[m]; ?>
<form action="add_fotolog.php" method="post" name="form1" id="form1">
<label> <span class="Titulo_add_flog">Nombre de Usuario en Fotolog</span>
<input name="nick" type="text" id="nick" size="15" maxlength="150" />
<span class="Titulo_add_flog">Tu Nombre Real</span> </label>
<label>
<input name="dueño" type="text" id="dueño" size="15" maxlength="150" />
</label>
<label> <span class="Titulo_add_flog">E-Mail</span>
<input name="email" type="text" id="email" style="background-color:#333333 color:#333333" size="15" maxlength="150" border="none" />
</label>
<label>
<input type="submit" name="enviar" value="Enviar" />
</label>
<br />
<p>
<label>
<div align="center">
</label>
</form></td>
</tr>
</table>
Código PHP:
<?
if ($enviar == Enviar){
// DATOS DE CONEXION DB
// Definicion de Variables de Conexion a la base de Datos
// Conectar a DB
$conectar = mysql_connect($servidor,$usuario,$clave);
mysql_select_db($nombre_basedatos,$conectar);
$link = "http://www.fotolog.com/".$nick;
$dueño = $dueño."-".$email;
$agregar = "INSERT INTO fotolog (link,nick,dueño,clicks)"."VALUES ('$link','$nick','$dueño','0')";
$result = mysql_query($agregar);
if ($agregar){
header("form_fotolog.php?m=Tu Fotolog Fue Agregado Correctamente");
}
else{
header("form_fotolog.php?m=La Consulta SQL contiene Errores");
}
}
else {
header("form_fotolog.php?m=ERROR 0001");
}
?>