Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old February 28th, 2004, 12:58 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
drop down menu

I'm new to php and html and I made a php file where it gets the data from a form and puts it into a database. But how do I now make a drop down field with 2 things to choose from?

Reply With Quote
  #2  
Old February 28th, 2004, 01:00 PM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: drop down menu

try if this fits your needs:
Code:
<html>


<body>

<form method="POST" action="script where it should post to">

  <p><select size="1" name="select">
  <option>option1</option>
  <option>option2</option>
  &nbsp;
  </select></p>
  <p><input type="submit" value="Submit" name="submit"></p>
</form>

</body>

</html>

Reply With Quote
  #3  
Old February 28th, 2004, 01:07 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: drop down menu

And how do I make more then 2?

Reply With Quote
  #4  
Old February 28th, 2004, 01:09 PM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: drop down menu

if you meen more that 2 options you just put another
<option>option_name</option>
under the other option. that does the job then. But i would really advise you to learn the basics of html first and look at some tutorial of html.

Reply With Quote
  #5  
Old February 28th, 2004, 01:11 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: drop down menu

ok can you tell me where to find tutorial?

Reply With Quote
  #6  
Old February 28th, 2004, 01:14 PM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: drop down menu

try
http://www.davesite.com/webstation/html/
that's a very good tutorial, if you need more just google it. But make sure to do all the points in the tutorial, then you will be able to use html

Reply With Quote
  #7  
Old February 28th, 2004, 02:20 PM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: drop down menu


Quote:
But how do I now make a drop down field with 2 things to choose from?

Do you have the problem how to automatically generate the list box with selected data from database table?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > drop down menu


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway