Ver Mensaje Individual
  #20 (permalink)  
Antiguo 15/05/2007, 16:07
Avatar de rol2007
rol2007
 
Fecha de Ingreso: mayo-2007
Ubicación: Santiasco CHILE
Mensajes: 300
Antigüedad: 16 años, 11 meses
Puntos: 4
Re: ayuda en input type

Código PHP:
<HTML>
<HEAD>
<TITLE>Modificar Cliente - ROL</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<LINK HREF="style.css" TYPE="text/css" REL="stylesheet">
<style type="text/css">
<!--
.Estilo1 {    color: #6E6E6E;
    font-family: Tahoma;
    font-weight: bold;
}
.Estilo4 {    font-family: Tahoma;
    color: #6E6E6E;
    font-size: 12px;
    image:Fotos/fyer.gif;
}
.Estilo5 {    color: #3399FF;
    font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 rightmargin="0" bottommargin="0">
<center>
<TABLE WIDTH=763 BORDER=0 CELLPADDING=0 CELLSPACING=0>
  <!--DWLayoutTable-->
    <TR>
      <TD width="763">            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  width="763" height="258">
        <param name="movie" value="Flash/header.swf">
        <param name="quality" value="high">
        <embed src="Flash/header.swf" quality="high" type="application/x-shockwave-flash" width="763" height="258"></embed>
      </object></TD>
    </TR>
    <TR>
      <TD height="350" valign="top">            <TABLE WIDTH=763 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <!--DWLayoutTable-->
        <TR>
          <TD HEIGHT=20 colspan="3" background="images/2t1.gif" ><div style="padding-top:3px;padding-left:24px " class="head"><img src="images/img.gif" align="absmiddle">&nbsp; Modificar Usuario </div></TD>
          </TR>
        <TR>
          <TD WIDTH=416 rowspan="3" valign="top" ><div style="padding-top:15px;padding-left:30px;padding-right:25px; line-height:12px ">
            <strong> </strong>
            <p class="Estilo4">&nbsp;</p>
               <p class="Estilo4"> 
                         <?
//Conexion con la base
mysql_connect("localhost","root","");

//seleccion de la base de datos con la que vamos a trabajar
mysql_select_db("repuestos");

echo 
'<FORM METHOD="POST" ACTION="upname.php">Rut<br>';

//Creamos la sentencia SQL y la ejecutamos
$sSQL="Select * From clientes Order By rut";
$result=mysql_query($sSQL);

echo 
'<select name="rut">';

//Generamos el menu desplegable
while ($row=mysql_fetch_array($result))
{echo 
'<option>'.$row["rut"];
}
   echo 
"</select>";
  
 
  
  
$result1=mysql_query("select rut,nombre from clientes where rut='$rut' ");
 while (
$data=mysql_fetch_assoc($result1)){  
 echo 
"<input type='text' name='nombre' value='".$data['nombre'] ."'>";  }
 
  

 
?>
  <br>
Nombre<br>
<INPUT TYPE="TEXT" NAME="name">
<br>
<INPUT TYPE="SUBMIT" value="Actualizar">
</FORM>&nbsp;</p>
            </div></TD>
          <TD WIDTH=115 HEIGHT=45 >&nbsp;</TD>
          <TD WIDTH=232 >&nbsp;</TD>
          </TR>
        <TR>
          <TD HEIGHT=65 valign="top" ><span class="Estilo5"><a href="modi_user_lname.php">Modificar Apellido</a><br />
              <a href="modi_user_pass.php">Modificar Password</a><br />
              <a href="modi_user_dir.php">Modificar Direccion</a><br />
              <a href="modi_user_comuna.php">Modificar Comuna</a><br />
              <a href="modi_user_city.php">Modificar Ciudad</a><br />
              <a href="modi_user_fono.php">Modificar Telefono</a><br />
            <a href="modi_user_mail.php">Modificar Mail</a></span></TD>
            <TD >&nbsp;</TD>
          </TR>
        <TR>
          <TD HEIGHT=199 >&nbsp;</TD>
            <TD >&nbsp;</TD>
          </TR>
        <TR>
          <TD HEIGHT=21 >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
          </TR>
        
        
      </TABLE></TD>
    </TR>
    <TR>
      <TD HEIGHT=35 valign="top" background="images/1.gif" ><div align="center" class="menu" style="padding-top:10px; "><span class="menu" style="padding-top:10px; "><a href="index.html" class="menu">Home</a> | <a href="registro.htm" class="menu">Login</a> | <a href="quienessomos.html" class="menu">Nosotros</a> |<a href="misionvision.html" class="menu"> Vision y Mision</a> |<a href="Ubicacion.html" class="menu">Ubicacion</a></span></div></TD>
    </TR>
    <TR>
      <TD HEIGHT=30 valign="top" ><div style="padding-top:15px " align="center">
      <a href="index-2.html" class="copy">AV. ERRAZURIZ 500 SANTA CRUZ. </a>        </div></TD>

    </TR>
</TABLE>
</center>
</BODY>
</HTML>