I have 10 or more input hidden in 10 or more pages with different values in Wordpress text editor and I want to get the value using $_POST in a custom page template.
How to do this? I tried to called the input hidden name in my custom page template but the value is not getting.
Text editor
<form method="POST">
<input type="hidden" name="segment" value="test"/>
</form>
Custom page template
$segment = isset($_POST['segment']) ? $_POST['segment'] : '';
<input>
tag does not use and does not need a closing slash in HTML and never has.