Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Last active October 7, 2017 11:01
Show Gist options
  • Save cyrilletuzi/6c46979039d527a3a7fa87ebc21ef041 to your computer and use it in GitHub Desktop.
Save cyrilletuzi/6c46979039d527a3a7fa87ebc21ef041 to your computer and use it in GitHub Desktop.
<form method="post" action="signup.php">
<label for="signup-email">E-mail (required) :</label>
<input type="email" name="email" id="signup-email" required>
<label for="signup-password">Password (required) :</label>
<input type="password" name="password" id="signup-password" required>
<label for="signup-nickname">Nickname :</label>
<input type="text" name="nickname" id="signup-nickname" maxlength="250">
<label for="signup-phone">Phone number :</label>
<input type="tel" name="phone" id="signup-phone" pattern="[0-9 \+\-\.]+">
<label for="signup-website">Web site :</label>
<input type="url" name="website" id="signup-website">
<label for="signup-birthdate">Birthdate :</label>
<input type="date" name="birthdate" id="signup-birthdate">
<fieldset>
<legend>Gender :</legend>
<input type="radio" name="gender" id="signup-gender-n" value="n" checked>
<label for="signup-gender-n">Not specified</label>
<input type="radio" name="gender" id="signup-gender-w" value="w">
<label for="signup-gender-w">Woman</label>
<input type="radio" name="gender" id="signup-gender-m" value="m">
<label for="signup-gender-m">Man</label>
</fieldset>
<label for="signup-country">Country :</label>
<select name="country" id="signup-country">
<option value="ca">Canada</option>
<option value="fr" selected>France</option>
</select>
<label for="signup-description">About you :</label>
<textarea name="description" id="signup-description"></textarea>
<input type="checkbox" name="conditions" id="signup-conditions" required>
<label for="signup-conditions">I accept conditions.</label>.
<button type="submit">Signup</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment