How to capture the value of hidden fields using PHP

I was wondering how can I get a value from a hidden field using PHP?

Here is a hidden field.

<input type="hidden" name="delete" value="' . $row['delete_id'] . '" /> 
+4
source share
4 answers

just like not a hidden meaning.

 $_POST["delete"] 
+21
source

I assume the hidden field is in shape. So give it an identifier and do it as usual, you will get the value from the input field

 $_POST["delete"] 
+3
source

Example: $_REQUEST['delete']

0
source

if you use the post method, use $ _POST ['delete']; if you use the get method, use $ _GET ['delete']; Or for both methods use $ _REQUEST ['delete'];

0
source

Source: https://habr.com/ru/post/1308240/


All Articles