?
Solved

Formatting Input Form Field....

Posted on 2003-03-07
4
Medium Priority
?
137 Views
Last Modified: 2013-12-24
Is there a way to format the value in an input field to be something like:

mm/dd/yyyy or (###) ###-####

Thanks
0
Comment
Question by:pinkstonm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 14

Expert Comment

by:hhammash
ID: 8090505
0
 
LVL 14

Accepted Solution

by:
hhammash earned 200 total points
ID: 8090551
Hi,

You can create three Drop Down Boxes:

1- For Days
2- For Month
3- For Year

Double click each drop down box and give it the same name which is the name of the data field in the database.  If the name of the date field in the database is MyDate, double click each drop down box and name it as MyDate.  When the user selects the Dates that you Input as values then submit the date will be saved into the database.

Of course you have to give values for the drop downs.

The day drop down should have 1 to 30
The month drop down should have 1 to 12
The year drop down should have as many as you like.

Check this sample:
http://www.fmhs.uaeu.ac.ae/immconf/DateRange/DateRange2.asp

Best regards
hhammash
0
 

Author Comment

by:pinkstonm
ID: 8127616
Nice Solution
0
 
LVL 14

Expert Comment

by:hhammash
ID: 8128791
Hi,

Thank you pinksonm

hhammash
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question