Re: A two flavored post

From: Date: Sat, 06 Oct 2007 16:46:39 +0000
Subject: Re: A two flavored post
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-262872@lists.php.net to get a copy of this message
At 12:58 PM -0400 10/5/07, Daniel Brown wrote:
<? $s = $_GET['s']; ?> <script language="JavaScript"> function writeHREF(value,title) {
        var url = "http://www.crusar.org/test.php";
        var currentTime = new Date();
        var month = currentTime.getMonth();
        var day = currentTime.getDate();
        var year = currentTime.getFullYear();
        var jsvalue = month + '/' + day + '/' + year;
        document.write('<a href="' + url + '?s=' + value + '&jsvalue='
+ jsvalue + '">' + title + '</a>'); } </script> This is where your JS link will appear, Tedd: <script language="JavaScript">
        writeHREF('<?=$s;?>','Test Link');
</script>
Daniel That's slick. I solved the problem by using: <a href="img.php?i=<?php echo($value);?>" onclick="window.location = this.getAttribute( 'href' ) + '&s=' + s; return false;"> But, I am sure I will be using your's sometime soon. Thanks, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#262872) next »