0

Who can help me with the folowing
I have javascrip variable and a php datatable
And i wand to read the datatable with the javascript variable
here is the code i have

if(!isset($_POST['bewerk_gegevens']))
{
    ?>
    <script language="javascript" type="text/javascript">
        var newland = document.getElementById("geboorte_land").value;
        if ((newland != "" && newland != "Duitsland") || (newland != "" && newland != "USA"))
        {
            var x=document.getElementById("provincie")
            x.options[x.selectedIndex].text="Kies een provincie:"
        }
    </script>

    <?php
    $resulta = mysql_query("SELECT * FROM stamboom_provincies_var newland ");
    while($rowa = mysql_fetch_array($resulta))
    {
        echo "<option value='".$rowa['provincie']."'>".$rowa['provincie']."</option>";
    }
}

how can i use the datatable with var newland in stamboom_provincies_var newland?

Thanks in advice John

Edited by johnnyd1963

2
Contributors
2
Replies
14
Views
3 Years
Discussion Span
Last Post by johnnyd1963
0

Oke thanks i tought it I will make an other solution i have it almost With post from an other page.

thank for the reply

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.