NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page little help please with drop box

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-20-2006, 11:51 AM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Feb 2005
Posts: 165
alcapone is on a distinguished road
 



little help please with drop box


hi i have this part of a script



????: NamePros.com http://www.namepros.com/programming/249188-little-help-please-with-drop-box.html
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
alcapone is offline  
Old 10-20-2006, 04:40 PM   #2 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
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"; ?>" />
Dan is offline  
Old 10-24-2006, 12:19 AM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Feb 2005
Posts: 165
alcapone is on a distinguished road
 



hey thanks man works great
__________________
Hostile-Territory
alcapone is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:57 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger