Forums
This topic is locked
Using Variables with Querystring!
Posted 24 Apr 2002 09:34:08
1
has voted
24 Apr 2002 09:34:08 LiToZ LiToZ posted:
well, i have been facing a problem which is i dont know the syntax of using a variable in a querystring... here is the exact code...==============
<% Dim ChoosenImage, ImageName
ChoosenImage = Request.querystring("ChoosenImage"
ImageName = Request.querystring("ImageName"
%>
==================
This part is working fine and i use it to get the value of both the ChoosenImage and Image name from the querystring... now, i have an if , else conditional.. it is like [ If user usage is less than 50 then redirect him to ImageData.asp , else redirect him to allCrditsUsed.asp ] !! and here is the code
=================================
<% If InternalGateway.Fields.Item("Usage".Value <= 50 Then %>
<% Response.Redirect "ImageData.asp?ChoosenImage=ChoosenImage&ImageName=ImageName" %>
<% Else %>
<% Response.Redirect "/AllCreditUsed.asp" %>
<% End If %>
=========================
well.. in the line <b><%Response.Redirect "ImageData.asp?ChoosenImage=ChoosenImage&ImageName=ImageName"%></b> i want to use the variables i defined before in the url. the <b>ChoosenImage and ImageName </b> ! so anyone know the SYNTAX of that line ?? thanks..
Edited by - AkMaLiTo-C on 24 Apr 2002 09:35:30
Replies
Replied 24 Apr 2002 20:42:35
24 Apr 2002 20:42:35 Owen Eastwick replied:
Like:
<%
If InternalGateway.Fields.Item("Usage".Value <= 50 Then
Response.Redirect "ImageData.asp?ChoosenImage=" & ChoosenImage & "&ImageName=" & ImageName
Else
Response.Redirect "/AllCreditUsed.asp"
End If
%>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
<%
If InternalGateway.Fields.Item("Usage".Value <= 50 Then
Response.Redirect "ImageData.asp?ChoosenImage=" & ChoosenImage & "&ImageName=" & ImageName
Else
Response.Redirect "/AllCreditUsed.asp"
End If
%>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 25 Apr 2002 08:01:04
25 Apr 2002 08:01:04 LiToZ LiToZ replied:
The code you wrote worked really Perfect!! thank you for that valuable help <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>