im having trouble sending a value to another page using querystring..
the value is:
Elephant & Castle
when i load this value from my database and display it on my first page, it displays correctly using the following:
i try to send that string to another page as Postcode using this script
my second page receives the value like so:
and displays the value using
the problem is.. Elephant & Castle is only displaying as Elephant on the new page
it is cutting off part of the string after the &
i dont whether i have to prepare the variable in the form action code before it leaves the page.. or grab the whole string when the value arrives at second page.
can someone help me.. thanks.
the value is:
Elephant & Castle
when i load this value from my database and display it on my first page, it displays correctly using the following:
Code:
<%= rs("placeNAME")%>
Code:
<form action="online-booking1.asp?Price=<%=sTempVar & "163;" & trim(rs("salPRICE"))%>&Postcode=<%= rs("placeNAME")%>&FCar=Saloon" method="post">
my second page receives the value like so:
Code:
zpostcode = Request.QueryString("Postcode")
Code:
<%=(zpostcode)%>
the problem is.. Elephant & Castle is only displaying as Elephant on the new page
it is cutting off part of the string after the &
i dont whether i have to prepare the variable in the form action code before it leaves the page.. or grab the whole string when the value arrives at second page.
can someone help me.. thanks.