Do I use $_POST['selhosp'] to get the values or is there some other way. I am trying to run a mysql query based off what the user selects but I keep getting Notice: Undefined index: 'selhosp' in \hosplkup.php on line 21 I have a feeling im goign about this the wrong way. Can someone please straighten me out. Thanks Very Much, Dan
Is it just the first time that you load the page when nothing has yet been selected and posted?
You can get round with
if (isset($_POST['selectname'])) {
selectname = $_POST['selectname'];
// do query etc.
}
hth
wow storing the $_POST['selectname'] into a variable first worked. Thanks so much for the help. Thanks.