N
News Groups
Hello Asp Programmers,
I have a question. I have a form on an ASP page that has 5 text boxes, for
data
entry. I am trying to get data from the text box, and pass it to a hidden
text box on the form.
The hidden text box is called "MyDateTime" (a SQL date and time value).
I am attempting to concatenate data from two other textboxes (one for date
and one for time) to give a string like : "8/8/2004 8:00 AM"
I am trying to use the following:
<% Dim time
Dim date
Dim dateAndTime
time = Request.Form("usertime")
date = Request.Form("userdate")
dateAndTime = FormatDateTime(time & " " & date,vbGeneralDate)
in the html for MyDateTime hidden field i use this: value=
"<%=dateAndTime%>
for some reason the time and date fields, do not have data in them (although
typed on form)
I want to use data typed in the text boxes including the dateAndTime value
and insert those values in a database.
What am I not doing here??
Thanks for your help (previous posts answered and provided fixes for me)
eric
I have a question. I have a form on an ASP page that has 5 text boxes, for
data
entry. I am trying to get data from the text box, and pass it to a hidden
text box on the form.
The hidden text box is called "MyDateTime" (a SQL date and time value).
I am attempting to concatenate data from two other textboxes (one for date
and one for time) to give a string like : "8/8/2004 8:00 AM"
I am trying to use the following:
<% Dim time
Dim date
Dim dateAndTime
time = Request.Form("usertime")
date = Request.Form("userdate")
dateAndTime = FormatDateTime(time & " " & date,vbGeneralDate)
in the html for MyDateTime hidden field i use this: value=
"<%=dateAndTime%>
for some reason the time and date fields, do not have data in them (although
typed on form)
I want to use data typed in the text boxes including the dateAndTime value
and insert those values in a database.
What am I not doing here??
Thanks for your help (previous posts answered and provided fixes for me)
eric