Hello,
I'm trying to use data from a Mysql query as the default value for a text-input field in a html form. I've verified that my query is retrieving a data set and that $row['schName'] contains a value. Here is the code I'm using:
<input type="text" name="schName" value="<?php echo $row['schName']; ?>" class="txtInput" />
After submitting this form, on the next page I have the following:
<?php
session_start();
$SESSION['schName'] = $POST['schName'];
?>
However, when I check either the $POST or the $SESSION array, both of them show schName as NULL.
What am I doing wrong?
Thanks for any help.
Terry
But when I submit the form and then check the $POST array on the next page, or when I try to set a $SESSION array