472,096 Members | 2,301 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

space in variables

hey gang. this is probably a simple thing i am over looking, but.....

i need to combine 2 vriables that are retrieved from a form. idate and
itime

i want to put these into the t_date field in my sql db. but for it to work
properly, there needs to be a space between the idate and itime.
how do i do this?
i know i should know this, and i have used it before. but it has been so
long, that i can't remember for the life of me.
any help would be appreciated.

Bam
Mar 15 '07 #1
3 2183


mynewstring = request.form("idate") & " " & request.form("itime")

"Jeff" <ba*@gig-gamers.comwrote in message news:45***********************@roadrunner.com...
hey gang. this is probably a simple thing i am over looking, but.....

i need to combine 2 vriables that are retrieved from a form. idate and itime

i want to put these into the t_date field in my sql db. but for it to work properly, there needs to be a space between the idate
and itime.
how do i do this?
i know i should know this, and i have used it before. but it has been so long, that i can't remember for the life of me.
any help would be appreciated.

Bam

Mar 15 '07 #2

"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message
news:12*************@corp.supernews.com...
>

mynewstring = request.form("idate") & " " & request.form("itime")

"Jeff" <ba*@gig-gamers.comwrote in message
news:45***********************@roadrunner.com...
>hey gang. this is probably a simple thing i am over looking, but.....

i need to combine 2 vriables that are retrieved from a form. idate and
itime

i want to put these into the t_date field in my sql db. but for it to
work properly, there needs to be a space between the idate and itime.
how do i do this?
i know i should know this, and i have used it before. but it has been so
long, that i can't remember for the life of me.
any help would be appreciated.

Bam

thanks so much... dang, i feel a bit on the stupid side now..
Mar 15 '07 #3
Jeff wrote:
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in
message news:12*************@corp.supernews.com...
>mynewstring = request.form("idate") & " " & request.form("itime")
thanks so much... dang, i feel a bit on the stupid side now..
Yeah, well don't.

It isn't easy to remember the syntax for everything.

In Javascript it would be
var + " " + var
where var is a variable or a function returning a value

In HTML you would need to add &nbsp; between the two elements

Elsewhere, ??

One of the many things I have diffiiculty in keeping track of is "How to add
a line break".
In HTML
In Javascript
In an alert box in Javascript
In VBS
etc.

Ah, well. One day !!
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------

Mar 15 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Shuo Xiang | last post: by
6 posts views Thread by marek | last post: by
1 post views Thread by Phil W | last post: by
16 posts views Thread by junky_fellow | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.