Below is my code. The posted statement is working & bringing variables through.
However, the if statement $table="1" is overwriting the $table variable with the value 1... so the check is always true. 
Can anyone help me fix this?
Thank you!
<?php
    print_r($_POST);
    $table = $_POST['origintable'];
    $database = $_POST['origindatabase'];
    if ($table = "1") { 
        echo "<br>      Database name: <b>$database</b> Table name:<b>$table</b>.";
    }
    else {
        echo "Have a good night!";
    }
?>
 
     
     
    