Re: A two flavored post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux