amalosoul Posted October 15, 2006 Share Posted October 15, 2006 How does javascript access the variables which are sent through the GET method (from php)Example: www.mysite.com?id=1How can I use that variable id? Link to comment https://forums.phpfreaks.com/topic/24026-how-does-javascript/ Share on other sites More sharing options...
fenway Posted October 15, 2006 Share Posted October 15, 2006 It doesn't "access" them at all... nor do they come from PHP. If you want, you could parse out the query string, or have your PHP script write out the necessary JS variable declaration directly. Link to comment https://forums.phpfreaks.com/topic/24026-how-does-javascript/#findComment-109181 Share on other sites More sharing options...
amalosoul Posted October 15, 2006 Author Share Posted October 15, 2006 Thank you very much for your pacience! Link to comment https://forums.phpfreaks.com/topic/24026-how-does-javascript/#findComment-109186 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.