courses-dreamweaver - importing list form
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » courses-dreamweaver - Importing a list to a form

courses-dreamweaver - Importing a list to a form

The UK's most regular instructor-led training courses.
Training information: courses-dreamweaver · Dreamweaver training · Adobe dreamweaver training

resolvedResolved · Low Priority · Version Standard

Importing a list to a form

Gavin has attended:
Dreamweaver 8 Introduction course
Dreamweaver 8 Intermediate course

by - delegate Gavin [12 posts] (2007 Feb 27 Tue, 15:45) replyReply

how do i import a list to a form, instead of having to manually type it in?

Dreamweaver 8 Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
8 2009 Jan 20 Tue Bloomsbury 8 book now £175 £225
8 2009 Apr 24 Fri Bloomsbury 8 book now £175 £225
8 2009 Jul 15 Wed Bloomsbury 8 book now £175 £225
8 2009 Aug 28 Fri Bloomsbury 8 book now £175 £225
8 2009 Oct 6 Tue Bloomsbury 8 book now £175 £225

RE: Importing a list to a form

by - trainer Rich platinum contributer[744 posts] (2007 Feb 28 Wed, 14:14) replyReply

Hi again Gavin,

If I had a long list of items to put in a selectbox element, I'd paste the items into the code view, then either use some kind of macro or just copy and paste the <option> tags around each item.

For example, the selectbox (or list) in HTML code starts and ends like this:
<select name="elementname">
</select>

And between these Select opening and closing tags you put an opening and closing Option tag for each item.

So if, in Code view, you pasted in your list of items (from word, excel, or anywhere) you would then have this:
<select name="elementname">
Orange
Apple
Banana
Peach
</select>

You then need to go and put <option> before each item, and </option> after each item. So either copy and paste them in for each row, or if you have many items, perhaps use a program like UltraEdit, which can do text macros on every line of a text file. eg. you specify to put the text <option> at front of each line, and </option> at the end.

And that's all a select box is.

Note, an optional parameter in the nested <option> tag is value="". This parameter specifies the actual data that gets sent back to the web server. If you don't specify a value parameter, the server assumes the value is the same as the label (what the visitor sees).

eg.
<option value="orange">orange</option> is the same as <option>orange</option>

whereas
<option value="blueberry">orange</option> would send 'blueberry' to the server, even though your visitor selected 'orange' from the list.

Hope this has helped.

Regards, Rich


Related articles

· Six Reasons to Outsource Dream Weaver Training
· Powerhouse Tips from Dreamweaver Training
· How Dreamweaver Courses for Your Marketing Staff Can Cut IT Payroll Expenses
· Macromedia Dreamweaver: An Introduction
· Which Is Best: Training Dreamweaver Personnel Or Contracting for Web Design?

Dreamweaver tip:

Creating line breaks

If you want to create a line break hold down Shift+Enter.

View all Dreamweaver hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz