KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm creating a script to validate a form and I was asking myself a question. When I use a header (see example below), do I need to use exit right after? I mean, does using header also means that it is exiting by default therefore I don't need to use the command exit? // cancel button clicked if (isset($_POST['cancel'])) { header("Location: http://localhost/admin/tracks.php"); exit; } echo '<p>$name</p>'
Tags (comma-separated)
Save Edits
Cancel