Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 19th, 2003, 02:05 AM
abulshakoor abulshakoor is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 1 abulshakoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb Templates and select list of a form

I am going to develop a website and facing a challenge while using the tempelates, please some one who can help me. My problem is how to use a form where my select list in that form will be populated from the select query so how to use these bits and peices.?????

Last edited by abulshakoor : May 19th, 2003 at 02:30 AM.

Reply With Quote
  #2  
Old May 19th, 2003, 04:12 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
You should write a generic function that will build a select list for you. Place the function call, in the template, in between the SELECT start and end tags. That's how i do mine.

My list builder looks like: drawDropDownMatch(aryListItems, iListMatchID)

The first parm is an array of the list values (Value, Label). The second parm is the ID value that you write the "SELECTED" keyword if you find a match in the list.

HTH,
stumpy

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Templates and select list of a form


Developer Shed Advertisers and Affiliates


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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap