I'm getting a Notice: Undefined index
when I load my page at every of the following lines. The code works like expected only the source file (the html online) gives this notice. I'm new to php but I learned that a notice needs to be fixed if possible.
<select name='table'>
<option value='table1' <?php if($_GET['table']=="Table1"){echo "SELECTED";}?> >page1</option>
<option value='table2' <?php if($_GET['table']=="Table2"){echo "SELECTED";}?> >page2</option>
<option value='table3' <?php if($_GET['table']=="Table3"){echo "SELECTED";}?> >page3</option>
<option value='table4' <?php if($_GET['table']=="Table4"){echo "SELECTED";}?> >page4</option>
<option value='table5' <?php if($_GET['table']=="Table5"){echo "SELECTED";}?> >page5</option>
</select>
I tried to add an isset if(isset($_get
but that did not work. Is there a way to get rid of this notice?