• I have added a custom html form to my wordpress site.

    “<form action=”” method=”POST”>
    <input type=”text” name=”f1″ value=”test”/>
    <input type=”submit” name=”submit” value=”Submit”/>
    <form/>”

    And then created a contact.php file in cpanel. And add these codes.
    <body>

    Welcome <?php echo $_POST[“f1”]; ?>!

    </body>
    </html>

    And Added that page url to from action.
    “<form action=”contact.php” method=”POST”>”

    But when I click submit button I get 404 error.
    Please help me to fix this problem.

    Thanks,
    Nuwan T.

  • The topic ‘Custom form in wordpress.’ is closed to new replies.