faqts : Computers : Programming : Languages : PHP : Not Quite PHP : Javascript

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

85 of 249 people (34%) answered Yes
Recently 6 of 10 people (60%) answered Yes


Can I access Javascript variables in my PHP script?

Jul 10th, 1999 09:25
Nathan Wallace, John Coggeshall

Remember that Javascript runs on the client computer, while PHP runs on
the server.  That means that for Javascript variables to be accessible
in PHP you must send them from the client to the server.
You can POST javascript variables back to PHP.