Last active
December 30, 2015 03:59
-
-
Save ahmad24/7772660 to your computer and use it in GitHub Desktop.
wordpress : setting form style 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrap"> | |
<?php screen_icon( 'plugins' ); ?> | |
<h2>My Plugin </h2> | |
<form method="POST" action=""> | |
<table class="form-table"> | |
<tr valign="top"> | |
<th scope="row"> | |
<label for="fname">First Name </label> | |
</th> | |
<td> | |
<input maxlength="45" size="25" name="fname" /></td> | |
</tr> | |
<tr valign="top"> | |
<th scope="row"> | |
<label for="lname">Last Name </label> | |
</th> | |
<td> | |
<input id="lname" maxlength="45" size="25" name="lname" /></td> | |
</tr> | |
<tr valign="top"> | |
<th scope="row"> | |
<label for="color">Favorite Color </label> | |
</th> | |
<td> | |
<select name="color"> | |
<option value="orange">Orange </option> | |
<option value="black">Black </option> | |
</select> | |
</td> | |
</tr> | |
<tr valign="top"> | |
<th scope="row"> | |
<label for="featured">Featured? </label> | |
</th> | |
<td> | |
<input type="checkbox" name="favorite" /></td> | |
</tr> | |
<tr valign="top"> | |
<th scope="row"> | |
<label for="gender">Gender </label> | |
</th> | |
<td> | |
<input type="radio" name="gender" value="male" />Male | |
<input type="radio" name="gender" value="female" />Female | |
</td> | |
</tr> | |
<tr valign="top"> | |
<th scope="row"> | |
<label for="bio">Bio </label> | |
</th> | |
<td> | |
<textarea name="bio"></textarea></td> | |
</tr> | |
<tr valign="top"> | |
<td> | |
<input type="submit" name="save" value="Save Options" | |
class="button-primary" /> | |
<input type="submit" name="reset" value="Reset" | |
class="button-secondary" /> | |
</td> | |
</tr> | |
</table> | |
</form> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment