![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/01/2006, 19:28
|
![Avatar de BLAH !!](http://static.forosdelweb.com/customavatars/avatar41869_2.gif) | | | Fecha de Ingreso: septiembre-2003 Ubicación: Región Metropolitana, Santiago, Chile
Mensajes: 706
Antigüedad: 21 años, 4 meses Puntos: 16 | |
Claro ahora si entiendo lo que me quieres decir... Muchas Gracias primero que todo por tu interes en ayudarme...
Ya he comprendido lo que me dices, pero la solución que tu me planteas ya la había utilizado, y no tuve exito en ello.
El problema esta en el parámetro VALUE de la etiqueta <option> ya que no se porque me aparece este error con ella... Error
--------------------------------------------------------------------------
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/nautigif/public_html/pablo/nautigift/cotizacion email/index2.php on line 178
--------------------------------------------------------------------------
Esa linea es esta: (LA LINEA ROJA)
<?
if(isset($_GET["crear"])){
echo '<table border="0" cellpadding="0" cellspacing="0" width="680">';
for($i=1; $i<=$_GET["filas"]; $i++){
echo "
<script>
function cambio( item ) {
document.cotizacion.articulo[$i].length =0;
switch ( item ) {
case 'A-098': { document.cotizacion.articulo[$i].value = "Respuesta 1";
document.cotizacion.valor[$i].value = "Respuesta 1.1"}
break;
case 'A-099': {
document.cotizacion.articulo[$i].value = "Respuesta 2";
document.cotizacion.valor[$i].value = "Respuesta 2.2"}
break;
case 'A-100': {
document.cotizacion.articulo[$i].value = "Respuesta 3";
document.cotizacion.valor[$i].value = "Respuesta 3.3"}
break;
}
}
</script>
<tr>
<td align=center width=80><input type=text name="cantidad[$i]" id="cantidad[$i]" size=5></td>
<td align=center width=100>
<select type=text name="item[$i]" id="item[$i]" onChange="cambio(this.value)">
<option selected>ITEM</option>
<option value="A-098">A-098</option>
<option value="A-099">A-099</option>
<option value="A-100">A-100</option>
</select></td>
<td align=center width=220><textarea cols=22 rows=2 name="articulo[$i]" id="articulo[$i]"></textarea></td>
<td align=center width=140>$ <input type=text name="valor[$i]" id="valor[$i]" size=10 onKeyUp=\"javascript: document.getElementById('total[$i]').value = document.getElementById('valor[$i]').value * document.getElementById('cantidad[$i]').value;\"></td>
<td align=center width=140>$ <input type=text name="total[$i]" id="total[$i]" size=10></td>
</tr>";
}
echo "</table>";
}
?>
__________________ Adios ...!!!! |