Jump to content


Photo

How does Javascript


  • Please log in to reply
2 replies to this topic

#1 amalosoul

amalosoul
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 15 October 2006 - 09:07 PM

How does javascript access the variables which are sent through the GET method (from php)
Example: www.mysite.com?id=1
How can I use that variable id?

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 15 October 2006 - 09:36 PM

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.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 amalosoul

amalosoul
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 15 October 2006 - 09:46 PM

Thank you very much for your pacience!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users