Skip to content

Instantly share code, notes, and snippets.

@DavertMik
Created April 27, 2020 09:13
Show Gist options
  • Save DavertMik/9e3e93d2a0860389e193c36665b1e712 to your computer and use it in GitHub Desktop.
Save DavertMik/9e3e93d2a0860389e193c36665b1e712 to your computer and use it in GitHub Desktop.
Form
<form method="post" action="/update" id="update_form">
<label for="user_name">Name</label>
<input type="text" name="user[name]" id="user_name" />
<label for="user_email">Email</label>
<input type="text" name="user[email]" id="user_email" />
<label for="user_role">Role</label>
<select id="user_role" name="user[role]">
<option value="0">Admin</option>
<option value="1">User</option>
</select>
<input type="submit" name="submitButton" value="Update" />
</form>
@DavertMik
Copy link
Author

Selection_819

@DavertMik
Copy link
Author

Selection_821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment