A simple example would be <a href="img.php?s=<?php echo($value);?>" onclick="this.href += '&othervalue=x';">Click here</a> On 10/4/07, Robert Cummings <robert@xxxxxxxxxxxxx> wrote: > On Thu, 2007-10-04 at 22:33 -0400, tedd wrote: > > Hi gang: > > > > I asked this question on the javascript list, but for some reason > > it's taking forever to post there. So, I figured that I would ask > > here as well. > > > > I'm currently sending data (the value of s) to another script via the > > html statement: > > > > <a href="img.php?s=<?php echo($value);?>">Click here</a> > > > > However, I need to add another variable, namely a javascript > > variable, to the GET string. > > > > How can I send both a php and a javascript variable together at the same time? > > Use an onclick="" event handler. > > Cheers, > Rob. > -- > ........................................................... > SwarmBuy.com - http://www.swarmbuy.com > > Leveraging the buying power of the masses! > ........................................................... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php