469,632 Members | 1,618 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,632 developers. It's quick & easy.

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 2001


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.

By using this site, you agree to our Privacy Policy and Terms of Use.