0

I have design a static form, now I want to convert it to Wordpress form without using any plugin like contact form 7 and..., I want to know is any way to add a custom menu item to wordpress dashboard panel to manage all data that will be sent for each person (something like Woocommerce orders that you can see all details and orders)? Thank you

my code:

    <form method="POST" id="wp-info">       
    <fieldset>
        <legend>Personal Information</legend>
        <div class="form-group">
            <div class="right"> 
                <input type="text" id="name-persian" required="" placeholder="Example: John"/>
                <label class="control-label" for="first-name">First Name</label>
                <i class="bar"></i>
                <i class="input-error">Required</i>
            </div>
            <div class="left">
                <input type="text" id="name-latin" required="" placeholder="Example: Doe"/>
                <label class="control-label" for="last-name">Last Name</label>
                <i class="bar"></i>
                <i class="input-error">Required</i>
            </div>
        </div>
        <div class="form-group">
            <div class="right">
                <input type="text" id="middle-name" placeholder="Example" />
                <label class="control-label" for="middle-name">Middle Name</label>
            </div>
            <div class="left">
                <input type="date" id="date" required onkeydown="return false" placeholder="Example: 1990/01/01" min="1940-01-01" max="2006-12-31"/>
                <label class="control-label" for="date">Birthday</label>
                <i class="bar"></i>
                <i class="input-error">Required</i>
            </div>
        </div>
        <div class="form-group">
            <div class="right">
                <input type="text" id="country" required placeholder="Example: USA"/>
                <label class="control-label" for="country">Country</label>
                <i class="bar"></i>
                <i class="input-error">Required</i>
            </div>
            <div class="left">
                <input type="text" id="bp" required placeholder="Example: NewYork"/>
                <label class="control-label" for="bp">Birthplace</label>
                <i class="bar"></i>
                <i class="input-error">Required</i>
            </div>
        </div>
        <legend>Education level</legend>
        <div class="form-radio">
            <div class="radio">
                <label><input type="radio" name="degree" checked/><i class="helper"></i>Diploma </label>
                <label><input type="radio" name="degree"/><i class="helper"></i>Bachelor </label>
                <label><input type="radio" name="degree"/><i class="helper"></i>Ma</label>
                <label><input type="radio" name="degree"/><i class="helper"></i>PHD</label>
            </div>
        </div>
        <div class="form-group">
            <div class="right">
                <input type="text" id="major" required placeholder="Example: Software Engineering"/>
                <label class="control-label" for="major">Major</label>
                <i class="bar"></i>
                <i class="input-error">Required</i>
            </div>
        </div>
    <input type="submit" id="send" value="Send">
</form>
1
  • You can create a custom post type and save all form submissions there. You will need to handle sanitization, validation of the form fields and saving. May 26 '21 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.