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? Quote Link to comment 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. Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.