NYCPHP Meetup

NYPHP.org

[nycphp-talk] Passing JavaScript arrays

Cliff Hirsch cliff at pinestream.com
Fri Jul 7 11:44:01 EDT 2006


I need to pass data from PHP to JavaScript. Without resorting to any
fancy Ajax's code, I currently build the JavaScript array variables
using PHP echoes. Is this the best method? The arrays are visible in the
HTML code. Any issues? For security, do I just escape the output like
any other variable destined for the browser?
 
Regards,
Cliff
_______________________________
Pinestream Communications, Inc.
52 Pine Street, Weston, MA 02493 USA
Tel: 781.647.8800, Fax: 781.647.8825
http://www.pinestream.com <http://www.pinestream.com/> 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20060707/ca542854/attachment.html>


More information about the talk mailing list