Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not passing Variable

Status
Not open for further replies.

Jimuniguy

Technical User
Mar 6, 2002
363
GB
Hi,

I have the following problem. I state a few variables at the beginning of the page, yet it does not seem to include them in the string. Why and help please!

Code:
Code:
<%
Dim Agentnumber
Agentnumber =&quot;1&quot;
%>
<%
Dim Pageref
Pageref =&quot;../index.asp&quot;
%>
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>
<html lang=&quot;en&quot;>
<head>
<title>Assisted Learning Technology</title>
<META http-equiv=Content-Type content=&quot;text/html; charset=windows-1252&quot;>
</head> 
<body>
<%
Dim variable1, variable2, variable3, variable4, variable5, variable6, variable7, variable8, variablestring

variable1 = Request.QueryString(&quot;tfont&quot;)
variable2 = Request.QueryString(&quot;tSize&quot;)
variable3 = Request.QueryString(&quot;bBack&quot;)
variable4 = Request.QueryString(&quot;bFont&quot;)
variable5 = Request.QueryString(&quot;bSize&quot;)
variable6 = Request.QueryString(&quot;Link&quot;)
variable7 = Request.QueryString(&quot;Agent&quot;)
variable8 = Pagref

variablestring = &quot;?tFont=&quot; & variable1 &&quot;&Size=&quot; & variable2 & &quot;&Back=&quot; & variable3 & &quot;&Font=&quot; & variable4 & &quot;&bSize=&quot; & variable5 & &quot;&Link=&quot; & variable6& &quot;&Agent=&quot; & variable7 & &quot;&Pageref=&quot; & variable8
%> 
<div id=&quot;right2&quot;  class=&quot;bannertext&quot; style=&quot;text-align: right;&quot;><u>Further Information </u>
<div class=&quot;backgroundtext&quot;> 
<ol>
<li><a href=&quot;asp/Staff.asp<%=variablestring %>&quot; Title=&quot;Click here to find out about Support Staff&quot;</a></li>
        
<li><a href=&quot;ASP/contact.asp<%=variablestring %>&quot; Title=&quot;Click here to find out contact details&quot;>Contact ALS</a></li>
</ol>
</div>
</div>
</body>
</html>

Erm help anybody?

Thank you
James
 
You have probably checked this already however have you checked that you are using a get not a post on the previous page to send your form to this page?
 
you are spelling Pageref incorrectly when you declare variable8
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
The first response is probably the right thing. Can you right out the values of the QueryString varialbes you have listed before you try to put them into a string so thatyou know they are actually getting created correctly? That seems to be the most likely problem. The money's gone, the brain is shot.....but the liquor we still got.
 
Hi,

No it was the spelling mistake that was causing the problem.

How stupid do i feel?

James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top