NYCPHP Meetup

NYPHP.org

[nycphp-talk] Passing JAVASCRIPT variables to PHP

Brian D. brian at realm3.com
Mon Mar 31 09:32:33 EDT 2008


>  And don't forget this way:  :-)
>
>  var a = 1;
>  (new Image()).src = '/myscript.php?a='+ a;

I'm going to recommend *against* that. That works, but it's an ugly
hack, and often when you're trying to do something like this you're
not addressing a deeper architectural problem.

[snip]


-- 
realm3 web applications [realm3.com]
freelance consulting, application development
(917) 512-3594



More information about the talk mailing list