Skip to content

Contact Form #564

Answered by pixelfabs
Fahim-Ferdous asked this question in Q&A
Sep 21, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

a contact form is very easy to add, just follow these steps:

  1. make a new page, say form.md in /content
  2. add frontmatter and code
---
title: Form
---
{{< rawhtml >}}
<form action="/action_page.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname" value="John"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname" value="Doe"><br><br>
  <input type="submit" value="Submit">
</form> 
{{< /rawhtml >}}
  1. add following code to /assets/css/extended/blank.css
input[type=text], select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@abishek
Comment options

Answer selected by Fahim-Ferdous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants