plugin to pass variables from external URL using $_GET
-
Hi,
I would like to be able to use a URL to grab variables from an external link and to then insert these variables into a link in the post that the external link is linking to.
Say the external link on another website is: https://www.myblog.com/a-test-post.php?m=test&aa=test2I would then have some code in the plugin, like
if(isset($_GET['link'])){ $m=$_GET['link']; } if(isset($_GET['aa'])){ $aa=$_GET['aa']; } $link="https://www.gohere.com/index.php?m=$m&aa=$aa";
What I would like to do is then be able to insert link in my post, using some sort of tag, e.g. {mylink}
How would I write such a plugin?
Thanks.
Steve
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘plugin to pass variables from external URL using $_GET’ is closed to new replies.