PHP Read input from user

I try open url from user input value but its no value


  <input type="text" name="numberpage" value=""/>

<a  href="./page.php?page=editdatapo&id=<?php echo $_POST['numberpage']; ?>">find</a>

here result that should be

user input = 13

output url


but output like this



<form action="./page.php" method="GET">
   <input type="hidden" name="page" value="editdatapo" />
   <input required type="text" name="id"/>
   <input type="submit" value="Find" />

Try using GET. After hitting submit, it will redirect to:


This way, you dont have to use $_POST just to access the link. You can just type the id then hit Enter/Find directly.

By default, forms without the method attribute uses GET and you can omit it if you really want to.