The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> how can I combine two input fields to send to the same database field?, html forms
supasnail
post Oct 30 2006, 03:03 PM
Post #1





Group: Members
Posts: 3
Joined: 30-October 06
Member No.: 625



I am wondering if this is now possible now that i've been googling for ages, but someone might know the easy answer ...

What I would like to do is allow two or more input fields in a form to be combined and sent into the same database field....,

for example, rather than allow users to insert the date in any format they choose, I'd like to steer them to inserting it YYYY-MM-DD, ideally i'd like this to be in the form of three separate input boxes but I don't want three fields in the database, just the one.

Is there a way to do this with simple xHTML? or will this be a javascript combo? I'm sure it can be done.

Hope I have been clear enough..

Thanks
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 01:39 PM