Skip to content
Advertisement

PHP get function is empty for hidden container

I am trying to $_GET a hidden input using PHP.

When I check the html code in Chrome, Safari, etc., I can see the value of the hidden variable but when I try to echo it with PHP it is empty. All of this is inside a modal.

I don’t really understand what I am doing wrong.

I hope some of you can help me.

JavaScript

Advertisement

Answer

You need to submit the form to get the value, try this

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement