delete.php
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Storm of Sighs</title>
<link rel="shortcut icon" href="../objetos/favicon.ico"
type="image/x-icon">
<link rel="stylesheet" href="estilo.css" type="text/css" media="all">
</head>
<body>
<div id="cabecera"><img src="objetos/cabecera.gif" alt="cabecera" height="200" width="900"></div>
<br><br>
<font size=3 color=#FFFFFF>
</a><form method="post" action="delete2.php">
id :<input type="Text" name="id"><br>
<input type="Submit" name="enviar" value="Aceptar información">
</form>
</font></p>
</select>
<br>
</FORM>
</div>
</BODY>
</HTML>
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Storm of Sighs</title>
<link rel="shortcut icon" href="../objetos/favicon.ico"
type="image/x-icon">
<link rel="stylesheet" href="estilo.css" type="text/css" media="all">
</head>
<body>
<div id="cabecera"><img src="objetos/cabecera.gif" alt="cabecera" height="200" width="900"></div>
<br><br>
<font size=3 color=#FFFFFF>
<!-------
<?php
if (isset($id)){
// process form hay que vincular borra_form.html
$link = mysql_connect("xxxxxxxxxx", "xxxxxxxx", "xxxxxxxx");
mysql_select_db("xxxxxx",$link);
$sql = "DELETE FROM ac_users WHERE id=$id";
$result = mysql_query($sql) or die(mysql_error());
}else{
echo "Debe especificar un 'id'.\n";
}
//cierro conexion
include ("http://www.xxxxx.com/sistema/logout.php");
?>
--->
Cierra sesión y tu cuenta será borrada.
</BODY>
</HTML>