| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | little help please with drop box hi i have this part of a script Use <input type="text" class="text" maxlength="3" size="5" name="trn" value="<?if($trn){echo"$trn";}?>"> turns producing coke.<select name="drug_type"> <option value="crack" <?if($drug_type==crack){echo"selected";}?>>crack </option> </select> <input type="hidden" name="keyboard" value="enter"><input type="submit" class="button" name="produce" value="produce"> </span> </form> need it to work with out the drop down box in there thanks for help
__________________ Hostile-Territory |
| |
| | #2 (permalink) |
| Buy my domains. | Replace Code: <select name="drug_type">
<option value="crack" <?if($drug_type==crack){echo"selected";}?>>crack </option>
</select>
Code: <input type="checkbox" value="crack" name="drug_type" checked="<? echo ($drug_type == 'crack') ? "selected" : "false"; ?>" /> |
| |
| | #3 (permalink) |
| NamePros Member | hey thanks man works great
__________________ Hostile-Territory |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |