I've written a search script that displays search results as links to certain sites. I want to be able check if the site exists after the user clicks the link. I've used the following entry function to redirect the user, but it isn't accepting the URL parameter.
<A NAME=redirect someurl PUBLIC>
<fetch $someurl>
<if $ret ne "">
<header NAME="Location" VALUE=$someurl>
<exit>
<else>
Site doesn't exist.
</if>
</A>
<a name=main public>
<a href="$url/redirect.html?someurl=www.somesite.com/subdir/somefile.htm">Click here.</a>
</a>
What's wrong with this script?
<A NAME=redirect someurl PUBLIC>
<fetch $someurl>
<if $ret ne "">
<header NAME="Location" VALUE=$someurl>
<exit>
<else>
Site doesn't exist.
</if>
</A>
<a name=main public>
<a href="$url/redirect.html?someurl=www.somesite.com/subdir/somefile.htm">Click here.</a>
</a>
What's wrong with this script?