Right method to check if user submitted a form
I have a page with a form. Which of the following methods is the best to use to check if the form is submitted? And how are they different? Method 1: if($_SERVER[‘REQUEST_METHOD’] == ‘POST’){ //…
Online Free Tutorials Guruji Guide & Materials – Solved Questions Answers
I have a page with a form. Which of the following methods is the best to use to check if the form is submitted? And how are they different? Method 1: if($_SERVER[‘REQUEST_METHOD’] == ‘POST’){ //…