How to add custom HTML form in wordpress?

Is there any plugin to add own HTML form in wordpress blog. I want to integrate my own form to wordpress??

Related posts

Leave a Reply

4 comments

  1. Here is what i did once, im pretty sure that there is a better way to do this though:

    File: myform.php, in the root of the wordpress folder
    <?php
    set_include_path(
        get_include_path().PATH_SEPERATOR.
        pathinfo($_SERVER['SCRIPT_FILENAME'],PATHINFO_DIRNAME));
    
    require('wp-blog-header.php');
    
    header('response: 200 OK');
    
    //change this to match the theme,.. maybe use a function from wordpress instead, i was in a hurry so i didnt make it fancy like that
    include "wp-content/themes/twentyten/header.php";
     // Form code here...
    include "wp-content/themes/twentyten/footer.php";
    ?>
    

    then make a new page in the wordpress administration area and put this code in the source view:

    <script type="text/javascript">window.location.href='path/to/myform.php';</script>

    But as said, this is kind of a bad way to do it, it got the job done though.