this could be a really daft question - but I will ask it anyway
basically I have
<a href="/cgi-bin/simple.pl">simple search</a>
where I would like to also take across a variable to ensure that anyone getting to the simple search page goes via the perl script.. bit like security as the session is started by simple.pl which then directs you to simplesearch.html if you go directly to simplesearch.html without by passing the perl script a session isn't started and it wont work... :dodgy:
<?= <a href='simple.pl?var=$date' ?>simple search </a>
any ideas? (and no we cannot use php :D)
Oops, pressed tab then enter by mistake ... see next post
Yes, this is possible. If the variable is always the same, then you would do almost what you have below:
or perhaps you would have
location.href="filename.htm?" + param;
<a href="#" onclick="gohere('something')">
var URL= location.href;
//do something else
thanks lloydi I certainly didn't expect such an easy answer..
so using this I could make the parameter the current date and time or something? i.e. a unique number?
This topic is now closed. New replies are no longer allowed.