faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 23 people (65%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How can I access a JavaScript array with PHP??

Mar 20th, 2008 16:56
ha mo, Philip Olson, Henrik Hansen, Emma Jo,


You can't access JavaScript from PHP because JavaScript is run at the
client side and PHP is a server side language. This means that the
JavaScript is being interperted after the PHP is.
You can however pass variables created with JavaScript to PHP through 
HTTP such as through GET, here's an example:
  How can I pass a variable from JavaScript to PHP? 
  ------------------------------------------------------------------
  http://php.net/manual/en/faq.html.php#faq.html.javascript-variable
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com