Displaying php variables for the value in text boxes
<p>I need to have users choose a task to edit from a drop down box. I need to take this value and perform a <code>SELECT</code> query to fill out a form with the results of this query. I have the drop down menu working fine. I am accurately passing the value through the <code>$_POST['taskID']</code> variable. I am loading the proper value into <code>$taskName</code>. I added the <code>print_r</code> and echos at the bottom of this as a test to make certain I was getting the proper values. I have tried using every syntax choice I have found in the forums. This would include single quotes, using echo, adding a semi colon, etc. I am using this in a <code>.php</code> file. Any help would be greatly appreciated.</p>

<p>This is the code I am using:</p>

<pre class="lang-html prettyprint-override"><code>Task Name: &lt;input type="text" size="32" maxlength="32" value="&lt;?= $taskName ?&gt;" /&gt;&lt;br /&gt;&lt;br /&gt; 
        &lt;?php
        $tidHolder = $_POST['taskID'];
            include( 'inc/mice.inc.php' );
                $cxn = mysqli_connect( $host, $user, $password, $database );
                $sql = "SELECT taskName FROM taskManager_tasks WHERE tid = '$tidHolder'" ;
                $sqlResult = mysqli_query( $cxn, $sql);

                if (!$sqlResult)
                {
                    die('Could not connect: ' . mysql_error());
                }
                $row = mysqli_fetch_assoc($sqlResult);
                $taskName=$row['taskName'];
                echo $tidHolder;
                print_r($_POST);
                echo $taskName;
            ?&gt;
</code></pre>
