Using if(isset($_POST[‘submit’])) to not display echo when script is open is not working

You need to give your submit <input> a name or it won’t be available using $_POST['submit']:

<p><input type="submit" value="Submit" name="submit" /></p>

Leave a Comment