Joining posted fields

  • Thread starter Thread starter Wayne-I-M
  • Start date Start date
W

Wayne-I-M

Hi

I have 2 form fields that are posted to another form. How do I join them ?

This is what I have at the moment in the recieveing fields
<%=Request.Form("Forename")%>
<%=Request.Form("Surname")%>

If the 2 fields have
John in the 1st one
and Smith in the 2nd

I would like to create 1 text box on the 2nd form with
John Smith

Thank you
 
<%
Dim fName
Dim sName
fName = Request.Form("Forename")
sName = Request.Form("Surname")

'validate fName and sName, deal with apostrophes and quotes etc. to prevent
code/sql injection problems

%>

<input type="text" value="<%= fName & " " & sName %>">

--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
Thank you

--
Wayne
Manchester, England.



Ronx said:
<%
Dim fName
Dim sName
fName = Request.Form("Forename")
sName = Request.Form("Surname")

'validate fName and sName, deal with apostrophes and quotes etc. to prevent
code/sql injection problems

%>

<input type="text" value="<%= fName & " " & sName %>">

--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
Back
Top