Re: A two flavored post
| From: | heavyccasey at gmail dot com | Date: | Fri, 05 Oct 2007 03:19:35 +0000 |
| Subject: | Re: A two flavored post | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262784@lists.php.net to get a copy of this message | ||
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@interjinn.com> 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
>
>