Skip to content

Instantly share code, notes, and snippets.

@pebsconsulting
Created March 16, 2019 02:54
Show Gist options
  • Save pebsconsulting/f707960d6cd207468e042be97e1084cc to your computer and use it in GitHub Desktop.
Save pebsconsulting/f707960d6cd207468e042be97e1084cc to your computer and use it in GitHub Desktop.
YgLzay
<div style=" border-radius: 5px; background-color: #f2f2f2; padding: 20px; width: 50%">
<h2 style="font-size: 80px">Register Now.</h2>
<br>
<form accept-charset="UTF-8" action="https://formkeep.com/f/exampletoken" method="POST" target="_blank" id="weeblyform">
<!-- For detailed information check out these two sites
https://www.w3schools.com/tags/att_input_type.asp
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types
-->
<!-- type="text" A single-line text field. Line-breaks are automatically removed from the input value.
placeholder="Your name..." is a great way to hint to the customer what kind of
value you're expecting in the field and will not be submitted when they submit the form.
-->
<div class='wsite-form-field'><label class='wsite-form-label'>First Name</label>
<div class="wsite-form-input-container">
<input class="wsite-form-input wsite-input wsite-input-width-200px" style="background-color: #fff" type="text" name="first_name" placeholder="John">
</div>
</div>
<div class='wsite-form-field'><label class='wsite-form-label'>Last Name</label>
<div class="wsite-form-input-container">
<input class="wsite-form-input wsite-input wsite-input-width-200px" style="background-color: #fff" type="text" name="last_name" placeholder="Smith">
</div>
</div>
<div class='wsite-form-field'><label class='wsite-form-label'>Email</label>
<div class="wsite-form-input-container">
<input class="wsite-form-input wsite-input wsite-input-width-200px" style="background-color: #fff" type="email" name="email" placeholder="[email protected]">
</div>
</div>
<!-- textarea is a multi-line plain-text editing control, useful when you want to
allow users to enter a sizeable amount of free-form text.
-->
<div class='wsite-form-field'><label class='wsite-form-label'>Subject</label>
<div class="wsite-form-input-container">
<textarea id="subject" name="subject" placeholder="Reason for contacting us" rows="5"></textarea>
</div>
</div>
<!-- force older browsers to submit your form data as UTF8. It helps ensure all submissions to your form will be encoded the same way.
See https://intercom.help/formkeep/frequently-asked-questions/why-do-you-include-the-utf8-hidden-field-in-your-example-forms
-->
<input type="hidden" name="utf8" value="✓">
<!-- There are certain names for common fields that browers will treat specially
and autofill values for the user automatically. If you can use these names for
your fields you should. See the url below for more detailed information about them
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill
"name"
"organization-title"
"organization"
"street-address"
"address-line1"
"address-line2"
"address-line3"
"address-level4"
"address-level3"
"address-level2"
"address-level1"
"country"
"country-name"
"email"
"postal-code"
"language"
"bday"
"bday-day"
"bday-month"
"bday-year"
"sex"
"tel"
"tel-extension"
"url"
-->
<button style="padding:15px; margin: 15px 0 0 0;" type="submit">SUBMIT</button>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment