Form Submission in Admin Panel
-
I have a Form in my Admin Panel like below.
<form method="post" name="newAddress" id="createuser" class="validate" novalidate="novalidate" action="<?php echo WP_PLUGIN_URL . '/CRUD/form.php' ?>"> <input type="hidden" name="action" value="nds_form_response"> <input type="hidden" name="nds_add_user_meta_nonce" value="<?php echo $nds_add_meta_nonce ?>" /> <table class="form-table" role="presentation"> <tr class="form-field form-required"> <th scope="row"> <label for="name"> <?php _e( 'Name' ); ?> </label> </th> <td> <input name="name" type="text" id="name" value="" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" /> </td> </tr> <tr class="form-field form-required"> <th scope="row"> <label for="email"> <?php _e( 'Email' ); ?> </label> </th> <td> <input name="email" type="email" id="email" value="" /> </td> </tr> <tr class="form-field"> <th scope="row"> <label for="phone_no"> <?php _e( 'Phone No' ); ?> </label> </th> <td> <input name="phone_no" type="text" id="phone_no" value="" /> </td> </tr> <tr class="form-field"> <th scope="row"> <label for="address"> <?php _e( 'Address' ); ?> </label> </th> <td> <input name="address" type="text" id="address" value="" /> </td> </tr> <tr class="form-field"> <th scope="row"> <label for="photo"> <?php _e( 'Photo' ); ?> </label> </th> <td> <input name="photo" type="text" id="photo" class="code" value="" /> </td> </tr> </table> <?php submit_button( __( 'Add New Address' ), 'primary', 'addnewaddress', true, array( 'id' => 'addnewaddress' ) ); ?> </form>
How can I submit the Form ? I would like to insert values in Database.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Form Submission in Admin Panel’ is closed to new replies.