Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for PHP code in JavaScript to get variable

Current License: CC BY-SA 3.0

3 events
when toggle format what by license comment
Dec 9, 2012 at 4:03 comment added blsn I have a list of all regions’ ID from MySQL ‘region’ table. I don’t have the specific ID that I clicked.
Dec 9, 2012 at 3:51 comment added qooplmao You can include php in javascript when you are writing the script in the first place (to add php generated constants, etc) but once the page has finished generating the php side of things has done. The id created by '<?php echo list_region_id() ?>' is passed to the function as chosen_region_id so you already have it available.
Dec 9, 2012 at 3:37 history answered qooplmao CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /