Not sure if I have to use javascript or if I can use PHP:
I have an image that when the user clicks, I want to dynamically decide what page the href links to.
EXample:
<script language="JavaScript">
function setlink() {
var x;
x="result_b.php"; -- use logic to determine what page, x will return
return x;}
</script>
<a href=Javascript:setlink()><img src="../images/go.gif" width="38" height="35" border="0"></a></p>
right now, the code just puts the text (result_b.php) on a new page, instead of actually going to the result_b.php page.
thanks for you help
How should I do this or why is this not working?