I am trying to display a php form in wordpress. I was given the following code by default (which indicated that it can be used to display custom fields) and edited it but it is still not displaying the form :( I would like to figure out how to easily display this as I need to add custom fields and am very new to PHP.
/*
 * The form for adding custom fields on the options page.
 */
function fcpetition_fieldform($po) {
    ?>
            <form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"/>
                <input type="radio" name="addfield" value="yes"/>
                <input type="dropdown" name="petition_select" value="<?php echo $po; ?>"/>
                <input type="dropdown" name="editpetition" value="<?php print $po;?>">
                Type: <select name = "fieldtype">
                        <option value="text">Text box</option>
                        <option value="select">Drop down box</option>
                      </select>
                Name:<input type="text" name="fieldname"/>
                Options:<input type="text" name="options"/>
                Publish field <input type="checkbox" name="hide" checked/>
                <input type="submit" name="Submit" value="<?php _e("Add","fcpetition")?>"/>
            </form>
    <?php
}
Original code w/o my edits:
 /*
     * The form for adding custom fields on the options page.
     */
    function fcpetition_fieldform($po) {
        ?>
                <form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"/>
                    <input type="hidden" name="addfield" value="yes"/>
                    <input type="hidden" name="petition_select" value="<?php echo $po; ?>"/>
                    <input type="hidden" name="editpetition" value="<?php print $po;?>">
                    Type: <select name = "fieldtype">
                            <option value="text">Text box</option>
                            <option value="select">Drop down box</option>
                          </select>
                    Name:<input type="text" name="fieldname"/>
                    Options:<input type="text" name="options"/>
                    Publish field <input type="checkbox" name="hide" checked/>
                    <input type="submit" name="Submit" value="<?php _e("Add","fcpetition")?>"/>
                </form>
        <?php
    }
 
     
     
    