Blog

Using Hidden Input Tags in HTML and PHP for Forms
Posted on June 18, 2015 in HTML, PHP by Matt Jennings

HTML Example

<input type='hidden' name='action' value='register'>

PHP Example that Would be on Something like a form-process.php File

if(isset($_POST['action']) && $_POST['action'] == 'register'))
{
    //call to validations here
}

Leave a Reply