Joining posted fields

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
 
R

Ronx

<%
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.
 
W

Wayne-I-M

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top