chauhanRohit Posted July 12, 2014 Share Posted July 12, 2014 how can i do this ? i have a number of links , when i click one a pop up is displayed, i need to run a php script depending upon which link is clicked. Or can i run a javascript function once a query string is passed in the url Please advice. Link to comment https://forums.phpfreaks.com/topic/289779-how-to-pass-a-php-value-to-a-javascript-pop-up/ Share on other sites More sharing options...
Arcalypse Posted July 23, 2014 Share Posted July 23, 2014 Well, it all depends on where the variable is being stored in PHP. For instance, if you are getting the variable via the POST method from a form. Javascript already has functions built in to get these types of variables from the URL via parsing, but you have to break it down first. It just really depends on what you are trying to do. I find that almost 80% of time, it's not necessarily if the code can DO something or not. It's really the logic behind the execution of the challenge. Link to comment https://forums.phpfreaks.com/topic/289779-how-to-pass-a-php-value-to-a-javascript-pop-up/#findComment-1486023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.