Skip to content

Instantly share code, notes, and snippets.

@palimadra
Created August 21, 2015 09:15
Show Gist options
  • Save palimadra/c1f819643c15040abe7b to your computer and use it in GitHub Desktop.
Save palimadra/c1f819643c15040abe7b to your computer and use it in GitHub Desktop.
HTML for a simple form in HTML5 and CSS3
<div class="wrap">
<h2>Staff Details</h2>
<form method="post" action="options.php">
<?php settings_fields( 'my-plugin-settings-group' ); ?>
<?php do_settings_sections( 'my-plugin-settings-group' ); ?>
<table class="form-table">
<tr valign="top">
<th scope="row">Accountant Name</th>
<td><input type="text" name="accountant_name" value="<?php echo esc_attr( get_option('accountant_name') ); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row">Accountant Phone Number</th>
<td><input type="text" name="accountant_phone" value="<?php echo esc_attr( get_option('accountant_phone') ); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row">Accountant Email</th>
<td><input type="text" name="accountant_email" value="<?php echo esc_attr( get_option('accountant_email') ); ?>" /></td>
</tr>
</table>
<?php submit_button(); ?>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment