Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 3rd, 2004, 11:41 PM
Registered User
Join Date: Nov 2003
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Inserting dates in forms

Hello everybody,

I am trying to create a list of dates into a HTML form in dreamweaver.Is there a easy way to insert dates into a list rather then entering each dates from 1950-2004.
Your help will be appreciated.


Reply With Quote
  #2 (permalink)  
Old November 4th, 2004, 04:57 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

If I understand you correctly, no there isn't. If you add items to a drop-down list in Dreamweaver, you'll manually need to add the items to your page.

However, if you're using a dynamic / server side technology, like ASP, PHP, JSP or whateverP, you can set up a loop that fils the drop-down with the dates for you.

Or, if you have the dates somewhere in a database, you can bind the drop-down to a recordset so the items get added at run-time automatically.


Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #3 (permalink)  
Old November 22nd, 2004, 02:20 PM
Registered User
Join Date: Nov 2004
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

Well,dynamic page will work good. for example:

<select name="">
do while i<=j

however,you have another way to solve the problem using javascript, for example:

<script language="javascirpt">
document.write "<select>";
while (i<=j)
document.write "<option>"+i+"</option>";
document.write "</select>";
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem when inserting dates jhansib4u SQL Server DTS 1 January 28th, 2008 11:06 AM
Opening forms from other forms Paulsh Access VBA 1 September 30th, 2004 06:54 PM
Inserting data from forms sarah82 Access 3 July 12th, 2004 08:45 AM
Inserting forms fields into Access tsparker Classic ASP Databases 1 October 9th, 2003 03:24 AM

All times are GMT -4. The time now is 01:18 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.