On Fri, 2007-10-05 at 19:19 +0200, Aleksandar Vojnovic wrote:
> This might be a way to do it:
> 
> *Example 1*
> <script>
> function appendMeBaby(aVar){
>     self.location.href = 'img.php?s=' + aVar + 
> '&someOtherVar=itIsMeTheValue';
> }
> </script>
> <a href="javascript:appendMeBaby(<?php echo($value);?>);">Click here</a>
> 
> *Example 2*
> <script>
> function appendMeBaby(aVar, bVar){
>     self.location.href = 'img.php?s=' + aVar + '&someOtherVar=' + bVar;
> }
> </script>
> <a href="javascript:appendMeBaby(<?php echo($value);?>, 
> 'itIsMeTheOtherValue');">Click here</a>

I don't believe that is standards-compliant use of the href attribute.
Also it doesn't degrade gracefully for people who have JavaScript
disabled.

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

Reply via email to