andi: php variable in javascript popup übergeben !!!

hallo,

ich möchte aus einer php datei ein popup öffnen, mit variablenübergabe.

wie übergebe ich die variable name?

-----------
pop=window.open("includes/news2.php?name='.$link.'","News","status=no, resizable=no, scrollbar=no");
-----------
so funktioniert es nicht!

danke für jede hilfe
gruß
andi

  1. hallo,

    Hi

    pop=window.open("includes/news2.php?name='.$link.'","News","status=no, resizable=no, scrollbar=no");

    so funktioniert es nicht!

    stimmt, denn so wie's schaut, steht Dein Code nicht in einem PHP-Echo-Befehl. D.h., Du befindest Dich in HTML und das kennt keine PHP-Variablen. Ergo: name=<?PHP echo $link; ?>","...

    Gruss
    Lemmy
    http://www.olison.com

    1. hallo,

      nee, das funktioniert auch nicht:

      Notice: Undefined variable: name...

      hatte mich auch verschrieben name=$name und nicht name=$link.

      ich habs jetzt so:

      pop=window.open("includes/news2.php?name=<?php echo $name; ?>","News","status=no, resizable=no, scrollbar=no");

      geht aber trotzdem nicht!

      (ich werd noch verrückt)
      gruß
      andi

      hallo,
      Hi
      pop=window.open("includes/news2.php?name='.$link.'","News","status=no, resizable=no, scrollbar=no");

      so funktioniert es nicht!
      stimmt, denn so wie's schaut, steht Dein Code nicht in einem PHP-Echo-Befehl. D.h., Du befindest Dich in HTML und das kennt keine PHP-Variablen. Ergo: name=<?PHP echo $link; ?>","...

      Gruss
      Lemmy
      http://www.olison.com

      1. hallo,

        alles klar!!! funktioniert! hatte mich nur verschrieben!

        gruß+danke
        andi

        hallo,

        nee, das funktioniert auch nicht:

        Notice: Undefined variable: name...

        hatte mich auch verschrieben name=$name und nicht name=$link.

        ich habs jetzt so:

        pop=window.open("includes/news2.php?name=<?php echo $name; ?>","News","status=no, resizable=no, scrollbar=no");

        geht aber trotzdem nicht!

        (ich werd noch verrückt)
        gruß
        andi

        hallo,
        Hi
        pop=window.open("includes/news2.php?name='.$link.'","News","status=no, resizable=no, scrollbar=no");

        so funktioniert es nicht!
        stimmt, denn so wie's schaut, steht Dein Code nicht in einem PHP-Echo-Befehl. D.h., Du befindest Dich in HTML und das kennt keine PHP-Variablen. Ergo: name=<?PHP echo $link; ?>","...

        Gruss
        Lemmy
        http://www.olison.com