Help with ASP
#1
I am creating a series of ASP pages each with its own form.
FORM1 passes data to FORM2, FORM2 passes its data + FORM1 data to FORM3 etc.
Untill I get to the last form I will have all the form's data ready to pass to a database.
When I pass the data from FORM 1 to FORM 2 it carries over fine, but when FORM 1's data is passed to FORM3 it looses data, ie. anything after the first word disappears.
eg. if the data from FORM 1 is "Desktop PC", when it is eventually passed to FORM 3 it reads "Desktop".
Any ideas??
Cheers.
FORM1 passes data to FORM2, FORM2 passes its data + FORM1 data to FORM3 etc.
Untill I get to the last form I will have all the form's data ready to pass to a database.
When I pass the data from FORM 1 to FORM 2 it carries over fine, but when FORM 1's data is passed to FORM3 it looses data, ie. anything after the first word disappears.
eg. if the data from FORM 1 is "Desktop PC", when it is eventually passed to FORM 3 it reads "Desktop".
Any ideas??
Cheers.
#2
Scooby Regular
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes
on
0 Posts
rik,
its to do with the spaces. I remember a similar problem doing inline evaluation of querystring variables so
<%=variable%>
only showed the value up to the space, but
"<%=variable%>"
worked Ok, something along those lines, been a couple of months since I done any ASP and I cant test it here.
Cheers
Gary
its to do with the spaces. I remember a similar problem doing inline evaluation of querystring variables so
<%=variable%>
only showed the value up to the space, but
"<%=variable%>"
worked Ok, something along those lines, been a couple of months since I done any ASP and I cant test it here.
Cheers
Gary
#3
Im using <% asset=request.form("asset") %> in the header to request the data from the previous form, then where I want to insert the data I use <% Response.Write asset %>.
If the asset includes a space, when it goes two forms along, anything after the space is lost
If the asset includes a space, when it goes two forms along, anything after the space is lost
#4
Scooby Regular
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes
on
0 Posts
rik,
try assigning a page variable to the form var first:
strAsset = Request.Form("asset")
Then when you use it later you can do:
"<%=strAsset%>"
What do you want to use antiquated technologies like ASP for anyway?
Gary
try assigning a page variable to the form var first:
strAsset = Request.Form("asset")
Then when you use it later you can do:
"<%=strAsset%>"
What do you want to use antiquated technologies like ASP for anyway?
Gary
Thread
Thread Starter
Forum
Replies
Last Post