Home

Published

- 1 min read

php post self

img of php post self

The solution for this is noted below

php post self

Solution

   <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post">
        Name: <input type="text" name="name"><br>
        Email: <input type="text" name="email"><br>
        <input type="submit">
    </form>

Try other methods by searching on the site. That is if this doesn’t work