Iframe Expert needed!

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Iframe Expert needed!

    Hi,

    I need a coder urgently....

    Here is the description of the work :

    URL 1 : http://xxxxxxccxxx.com/subid=1233
    URL 2 : http://iframeurl.com/subid={URL 1's subid should be found here} i.e http://iframeurl.com/subid=1233

    If i want the above URL 1 to redirect to another URL 2 (using Iframe) but i want the SUBID in the Iframe URL..

    The subid in the URL 1 will be changing everytime..

    I don't really know how this can be done..

    If you think you can do it, send me a PM over here...

    Thanks!
    Last edited by AttiDuDe; 22.08.13, 11:10.

  • #2
    php:
    PHP Code:
    print '<iframe src="http://site.con/subid='.$_GET['subid'].'"></iframe>'
    javascript:
    PHP Code:
    <script type="text/javascript">
    function 
    getUrlVars() {
        var 
    vars = {};
        var 
    parts window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
            
    vars[key] = value;
        });
        return 
    vars;
    }
    document.write('<iframe src="http://site.con/subid='+getUrlVars()['subid']+'"></iframe>');
    </script> 
    Last edited by something else; 22.08.13, 22:10.

    Comment

    Working...
    X