NO DA NINGUN ERROR
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
Yo pienso que es... porque no le llegan dos datos para modificarlos... pero como no dice nada... si por lo menos dijese Error 23x)$?....
<?php
echo <<< HTML
<tr>
<td>
<div align="center">
<a href="$pag?accion=modificar">Modificar</a>
</font>
</div>
</td>
</tr>
HTML;
if ($_GET['accion']=="modificar"){
require ("../config.php"); //CARGA EL CONFIG.PHP CON LOS DATOS DE LA CONEXION
$IdConexion = mysql_connect($Servidor, $Usuario,$Password);
mysql_select_db($NombreBD, $IdConexion);
echo '<FORM METHOD="POST" ACTION="a2.php?accion=hacernuevo"><br>';
echo <<< HTML
<table width="350" border="1" cellspacing="0" cellpadding="4" align="center">
<tr>
<td colspan="2" height="30" bgcolor="#0099FF">
<div align="center">
<b>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"">
.: Registro de Usuarios :.
</font>
</b>
</div>
</td>
</tr>
<tr bgcolor="#FFFFCC">
<td width="158">
<div align="right">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
Usuario :
</font>
</div>
</td>
<td width="170">
<b>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input type="text" name="postpassword" class="imputbox" maxlength="15">
</font>
</b>
</td>
</tr>
<tr bgcolor="#FFFFCC">
<td colspan="2" height="40">
<div align="center">
<input type="submit" name="Submit" value=" Registrar " class="botones" >
<BR>
</div>
</td>
</tr>
</table>
</form>
HTML;
# Creamos la sentencia SQL y la ejecutamos.
$sSQL="Select postuser From $NombreTB Order By postuser";
$result=mysql_db_query($NombreBD,$sSQL);
echo '<center><select name="postuser">';
# Generamos el menu desplegable
while ($row=mysql_fetch_array($result))
{echo '<option>'.$row["postuser"];}
}
if ($_GET['accion']=="hacernuevo"){
require ("../config.php"); //CARGA CONFIG.PHP DATOS CONEXION
$IdConexion = mysql_connect($Servidor, $Usuario,$Password);
mysql_select_db($NombreBD, $IdConexion);
//Creamos la sentencia SQL y la ejecutamos
$sSQL="Update $NombreTB Set postpassword = '$postpassword' Where postuser = '$postuser'";
mysql_db_query($NombreBD, $sSQL);
echo '<div align="center">
<b>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"">
estoy aqui...pero no funciona...???...aaahgg
</font>
</b>
</div>';
}
?>