How to grab a hidden fields value using PHP

42,121

Solution 1

exactly like a non-hidden value.

$_POST["delete"]

Solution 2

I assume the hidden field is in a form. So give it an id and do it like you normally would get the value from an input field

$_POST["delete"]

Solution 3

Like this: $_REQUEST['delete']

Share:
42,121
Admin
Author by

Admin

Updated on July 17, 2022

Comments

  • Admin
    Admin almost 2 years

    I was wondering how can I grab the value from a hidden field using PHP?.

    Here is the hidden field.

    <input type="hidden" name="delete" value="' . $row['delete_id'] . '" />