Jump to content

Need to fire JS Link back with captured variable


n1concepts

Recommended Posts

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.php


http://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!

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.