|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
<!--system.phtml-->
<?php $prod = "CPU"; ?> <select name="CPU"> <option selected value='--'> -- </option> <?php include "prod-inc.php3"; ?> </select> <!-- --> <!--prod-inc.php3 --> print "<option value='1'>$name</option> <input name='name$prod' type='hidden'value='$name'>"; <!-- --> When this is sent the info is read fron the database and placed into a dropdown list. the only problem is that the last statement with the hidden field value is generated on the fly and has the same name in each case. eg. <option value='1'>Intel Celeron 600 CPU</option><input name='nameCPU' type='hidden' value='Intel Celeron 600 CPU'>] <option value='2'>Intel Celeron 633 CPU</option><input name='nameCPU' type='hidden' value='Intel Celeron 633 CPU'> <option value='3'>Intel Pentium III 667 CPU</option><input name='nameCPU' type='hidden' value='Intel Pentium III 667 CPU'> if i select option 1 with the drop down list it will parse the following: $CPU = 1 $nameCPU = Intel Pentium III 667 CPU XXXX the $nameCPU string should align up with the selected choice ie. Intel Celeron 600 CPU Thankx One very stumped developer |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Parsing 2 Strings with drop down list |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|