How do you concatenate the text in two text fields to pass in a form?
Printable View
How do you concatenate the text in two text fields to pass in a form?
Excuse my ignorence (and spelling) but what do you mean by "to pass in a form"?
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
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.
avariable = request.form("txtbox1") & request.form("txtbox2")
Cander,
How can I assign that variable to a hidden text field?
Where do I put that variable in a hidden text field!!!!???
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??
Please see your other post...My answer might help.
Chris