I need to pass a vaiable from script1, through a pop-up window to script2
Is this possible using a java pop-up window?

One of the many itterations I've tried!
script1.php:
<?php
$footer ="
<a href=\"javascript:void(0)\"
onclick=\"window.open('../../SomePathTo/script2.php?VariableName=+$variable+,
'standard window code removed for brevity!😉')\"></a>
";

echo "$footer";
?>

The syntax I'm using to add the variable is obviously wrong, it breaks the link.
But more importantly, I'm wondering is this possible or am I heading in the wrong direction?😕

Thanks, DC

    Originally posted by procoder
    yup should work

    😉 That was my thought too! But it doesn't!🙁

    Something's wrong with my syntax (I'm assuming), when I remove the variable, the link works!
    With it, it's broke!

      I dont know javascript much but maybe thats wrong?

      Also im saying it should work on the knowledge that if you link to a scritp with ?var= in it , it works

      maybe the javascript windows.open function doest like to take varibles?

        Originally posted by procoder
        maybe the javascript windows.open function doest like to take varibles?

        Sounds logical, 🙁

        Work around:
        Can a form open a pop up window?

        I'm searching. 😉

          Write a Reply...