Little help please with drop box

SpaceshipSpaceship
NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
Watch

alcapone

Established Member
Impact
0
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
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Replace
Code:
<select name="drug_type">
<option value="crack" <?if($drug_type==crack){echo"selected";}?>>crack </option>
</select>
With
Code:
<input type="checkbox" value="crack" name="drug_type" checked="<? echo ($drug_type == 'crack') ? "selected" : "false"; ?>" />
 
0
Close
hey thanks man works great
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back