how to add action which return html form that contaiin php value in function.php code example
Example: form action php
// Page containing a form:
<form action="myaction.php" method="post">
<p>Yopur name : <input type="text" name="name" /></p>
</form>
// myaction.php
Hello <?php echo htmlspecialchars($_POST['name']); ?>