Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/05/2008, 11:49
Avatar de xxrandyxx
xxrandyxx
 
Fecha de Ingreso: abril-2008
Ubicación: En mi casa
Mensajes: 143
Antigüedad: 16 años, 1 mes
Puntos: 2
Respuesta: Ayuda con Combobox

WAAAAAAAAAAAAAAAAAAAAAAAAAA WAAAAAAAAAAAAAAAAAAA

Pucha si te tuviera aca te besariaaaaaaaaaaaa!

Lo hice lo hice seeeeeeee seeeeeeeeee, oye man te pasaste, yo ya tenia mi tabla de productos creada y como estoy trabajando con el dreamweaver hice los mismos pasos que me diste pero desde el dreamweaver, jamas me lo hubiera imaginado.

OYE GRACIAS GRACIAS MUCHAS GRACIASSSSSSSSSSSSSSSSSSSS!


Aqui dejo mi codigo por si alguien lo necesitara en algun momento.


Claro tambien se podia hacer con el codigo, pero como tenia el dreamweaver a la mano me ahorre la escritura jejeje.

GRACIASSSSSSSSSSSSSSSSSSSSSSS!


Código:
<?php require_once('Connections/heaterco_db.php'); ?>
<?php
mysql_select_db($database_heaterco_db, $heaterco_db);
$query_rs_calculos = "SELECT * FROM productos";
$rs_calculos = mysql_query($query_rs_calculos, $heaterco_db) or die(mysql_error());
$row_rs_calculos = mysql_fetch_assoc($rs_calculos);
$totalRows_rs_calculos = mysql_num_rows($rs_calculos);
 
$W=$_POST[voltajeW]; /*Votaje en Watts*/ 
$V=$_POST[voltajeV]; /*Voltaje en Voltios*/ 
$A=$_POST[medidasA]; /*Medidas A*/ 
$B=$_POST[medidasB]; /*Medidas B*/ 
$M=$_POST[modelo]; /*Modelo*/ 
$O=$_POST[otro2]; /*Otro 2*/ 
$T=$_POST[otro3]; /*Otro 3*/ 

?>
<link href="estilos/stilos.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	background-color: #000000;
}
-->
</style>
<table width="350" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><form action="formula.php" method="post">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="25%" class="text3">Voltaje</td>
      <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="25%" class="text2">Wats: </td>
            <td width="25%"><input name="voltajeW" type="text" class="text4" id="hight" size="10" /></td>
            <td width="25%" class="text2">Voltaje: </td>
            <td width="25%"><input name="voltajeV" type="text" class="text4" id="voltaje" size="10" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="25%" class="text3">Medidas</td>
      <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="25%" class="text2">Alto:</td>
            <td width="25%"><input name="medidasA" type="text" class="text4" id="DAP" size="10" /></td>
            <td width="25%" class="text2">Ancho:</td>
            <td width="25%"><input name="medidasB" type="text" class="text4" id="medidas4" size="10" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="25%" class="text3">Modelo:</td>
      <td><label>
        <select name="modelo" class="text4" id="modelo">
          <option value="" <?php if (!(strcmp("", $row_rs_calculos['nombre']))) {echo "selected=\"selected\"";} ?>></option>
          <?php
do {  
?>
          <option value="<?php echo $row_rs_calculos['precio']?>"<?php if (!(strcmp($row_rs_calculos['precio'], $row_rs_calculos['nombre']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rs_calculos['nombre']?></option>
          <?php
} while ($row_rs_calculos = mysql_fetch_assoc($rs_calculos));
  $rows = mysql_num_rows($rs_calculos);
  if($rows > 0) {
      mysql_data_seek($rs_calculos, 0);
	  $row_rs_calculos = mysql_fetch_assoc($rs_calculos);
  }
?>
        </select>
      </label></td>
    </tr>
    <tr>
      <td width="25%" class="text3">Marca</td>
      <td><input name="otro2" type="text" class="text4" id="medidas2" size="10" /></td>
    </tr>
    <tr>
      <td width="25%" class="text3">Otro3: </td>
      <td><input name="otro3" type="text" class="text4" id="medidas3" size="10" /></td>
    </tr>
  </table>
      <table width="350" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      <input name="submit" type="submit" class="text4" value="Calcular Precio" />
      <label>
      <input name="Submit" type="submit" class="text4" value="Borrar" />
      </label>
    </form>
    </td>
  </tr>
</table>
<table width="350" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="350" height="30" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#FF6600">
  <tr>
    <td align="center" class="text2">
<?php
$V = 10.0*($W*$V+$A+$M-$O)*$T+$M;
echo "S/. $V"

?></td>
  </tr>
</table>

<?php
mysql_free_result($rs_calculos);
?>