|
-
Jul 17th, 2001, 03:23 PM
#1
Thread Starter
Hyperactive Member
Concatenate Text Fields? Simple Question Really
How do you concatenate the text in two text fields to pass in a form?
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Jul 17th, 2001, 03:29 PM
#2
Excuse my ignorence (and spelling) but what do you mean by "to pass in a form"?
-
Jul 17th, 2001, 03:31 PM
#3
Thread Starter
Hyperactive Member
I';m sorry. I didn't explain it as well as I should. I mean concatenate the text in two text fields. so when you Submit the form to a script it will be submited as one piece of imformation
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Jul 17th, 2001, 04:10 PM
#4
Could you create a hidden text field and then code some JS on each of the change events to set the hidden text = text1+text2.
Just an Idea.
-
Jul 17th, 2001, 04:10 PM
#5
avariable = request.form("txtbox1") & request.form("txtbox2")
-
Jul 17th, 2001, 04:16 PM
#6
Thread Starter
Hyperactive Member
Cander,
How can I assign that variable to a hidden text field?
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Jul 17th, 2001, 04:46 PM
#7
Thread Starter
Hyperactive Member
Where do I put that variable in a hidden text field!!!!???
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Jul 18th, 2001, 10:22 AM
#8
Thread Starter
Hyperactive Member
Ok. I have 2 textboxes and one hidden field in my form. I need to concatenate all of those into one hidden field to be submitted as one string to my script. This is the code that I have now. Can I please get some help?
VB Code:
<%
Dim myVar, Account, Date1, Amount
myVar = Request.Form("Account") & Request.Form("Date1") & Request.Form("Amount")
%>
<INPUT TYPE="hidden" ID=TopicItemNamePrefix NAME=TopicItemNamePrefix VALUE="<%=myVar%>">
What is the problem here??
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Jul 18th, 2001, 01:39 PM
#9
Fanatic Member
Please see your other post...My answer might help.
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|