n1concepts Posted November 13, 2013 Share Posted November 13, 2013 Requirements & Objectives: Ensure $x is populated (not empty) and fires $x variable if TRUE back to http://domain2.com/log.php?x=$_REQUEST['a'] on page (success.php) load. http://domain2.com/log.php // This is the page that needs to receive appended variable from http://domain1.com/success.php via JS ------- START OF PROCESS:http://domain1.com/index.php?id=test123 // this is the receiving domain with appended variable 'id' sent to www.domain1.com/index.phphttp://domain1.com/success.php?a=$_REQUEST['id'] // variable 'id' is then captured & passed, from inbound.php to success.php to which I, then, need that page (success.php) to fire the captured var $a back to domain2.com/log.php as var 'x' via JS. ============= Again, the objective is to get 'success.php' to assign $x to link and fire as: http://domain2.com/log.php?x=$_REQUEST['a'] on page (success.php) load via JS. I have the variable capture process, via PHP worked out - just need help with the JS part on success.php to fire the url back to www.domain2.com with captured var $x if populated. --- Any help appreciated - thx! Quote Link to comment https://forums.phpfreaks.com/topic/283859-need-to-fire-js-link-back-with-captured-variable/ Share on other sites More sharing options...
dalecosp Posted November 13, 2013 Share Posted November 13, 2013 Sounds like AJAX, not rocket science. What do you have so far? Javascript works in the DOM, and you're showing no code. Quote Link to comment https://forums.phpfreaks.com/topic/283859-need-to-fire-js-link-back-with-captured-variable/#findComment-1458111 Share on other sites More sharing options...
n1concepts Posted November 13, 2013 Author Share Posted November 13, 2013 Yeah, that's for responding - I was just thinking AJAX earlier. I have the logic in my head and will throw - what I think required - together in just a bit for you to review and advise. Appreciate the response and will provide the code for review shortly - thx! Quote Link to comment https://forums.phpfreaks.com/topic/283859-need-to-fire-js-link-back-with-captured-variable/#findComment-1458115 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.