I have a little problem with my if(isset($_POST[\'submit\'])) code. What I want is some echos and a table to not appear when the script is open but I do want it
if(isset($_POST[\'submit\']))
You need to give your submit a name or it won't be available using $_POST['submit']:
$_POST['submit']