PDA

View Full Version : redirect depending on info from link.


Mhtml
07-22-2002, 06:05 AM
Ok I have just made a page for a reply in the html/css forum on which i have an example of putting a border around an image in a graphics editor.

Since I am on brinkster I can't link directly to that file in my db directory. So I decided I would write my very first asp script with no outside help...I failed.LoL any way I want to redirect depending on variables(i think) sent with the link from the reply. But It doesn't seem to do the check it just redirects to the image.asp page.

For the link I have http://www21.brinkster.com/cubestudios/index.asp?linka=imagepage

and my index.asp has <HTML>
<HEAD>
<% if linka = imagepage then
response.redirect("db/image.asp")
else response.redirect("index3.htm")
end if%>
<TITLE></TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
</BODY>
</HTML>


What did I do wrong?:confused:

The Wizzard
07-22-2002, 07:31 AM
Um, sorry this doesnt answer your question, but where did you get the poll on that page? Could you please send me the link? Thanks :)

Mhtml
07-22-2002, 07:40 AM
I can't remember, I'll just set it as an attachment it is quite small.
By the way, the one on that page I have customized for myself including the images.

glenngv
07-22-2002, 09:56 AM
<HTML>
<HEAD>
<%if request.querystring("linka") = "imagepage" then
response.redirect("db/image.asp")
else
response.redirect("index3.htm")
end if%>
<TITLE></TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
</BODY>
</HTML>

Mhtml
07-22-2002, 10:07 AM
Thanks a heap. Although that page was only to demonstrate to a newbie to graphics it was worth it, because now I know how to get that information from a link.

Once again Thanks.:thumbsup:
...Mike