Nils Dehl: JV Variable an PHP übergeben

Hi Leute,

wie übergebe ich eine JavaScript Variable an  PHP (eine Php Variable).

thx

nils

  1. Hallo Nils!

    wie übergebe ich eine JavaScript Variable an  PHP (eine Php Variable).

    Bei mir funktioniert es z.B. so:

    <ungetestet>

    index.php
    ---------
    window.location.href = 'index2.php?details=on';

    index2.php
    ----------

    echo ("$details"); # liefert als Ausgabe "on"

    </ungetestet>

    Hoffe das funktioniert

    Gruesse

    -> Andreas