Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html form

<form action="/action.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" value="Mike"><br><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" value="Walker"><br><br>
  <input type="submit" value="Submit">
</form>
Comment

form.html

<!DOCTYPE html>
<html>
<head>
    <title>Contact</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
</head>
<body>
    <h1>Contact</h1>
    
    <form method="post" action="send-email.php">
        <label for="name">Name</label>
        <input type="text" name="name" id="name" required>
        
        <label for="email">email</label>
        <input type="email" name="email" id="email" required>
        
        <label for="subject">Subject</label>
        <input type="text" name="subject" id="subject" required>
        
        <label for="message">Message</label>
        <textarea name="message" id="message" required></textarea>
        
        <br>
        
        <button>Send</button>
    </form>
    
</body>
</html>
Comment

html form

<!-- Form which will send a GET request to the current URL -->
<form method="get">
  <label>Name:
    <input name="submitted-name" autocomplete="name">
  </label>
  <button>Save</button>
</form>

<!-- Form which will send a POST request to the current URL -->
<form method="post">
  <label>Name:
    <input name="submitted-name" autocomplete="name">
  </label>
  <button>Save</button>
</form>

<!-- Form with fieldset, legend, and label -->
<form method="post">
  <fieldset>
    <legend>Title</legend>
    <label><input type="radio" name="radio"> Select me</label>
  </fieldset>
</form>
Comment

PREVIOUS NEXT
Code Example
Html :: ol html 
Html :: button that links to controller html 
Html :: twig array keys and values 
Html :: markdown background colour 
Html :: how to call a script from another script in javascript 
Html :: html block button tag 
Html :: shopify custom html image tag src attribute 
Html :: how to pass dynamic url in Link react 
Html :: html make range bar show value 
Html :: show/hide password html 
Html :: back arrow html 
Html :: selectpicker dropdown in bootsttrap 
Html :: font color html 
Html :: html select change event 
Html :: Simple example of using external file javascript in html 
Html :: cant pass multipule select input bootstrap 
Html :: tr , th , td , table 
Html :: how do you add an image in html 
Html :: cambiar src jquery 
Html :: how to stop marquee text when you move your mouse over it 
Html :: css how to place an icon on a photo 
Html :: How do I change the default text in dropzone.js? 
Html :: shoppy embed 
Html :: how to call one phtml file in another phtml file in magento2 
Html :: boostrap base theme 
Html :: html work with path 
Html :: table bootstrap dark 
Html :: HTML <header element 
Html :: alpinejs submit prevent default 
Html :: hide or show element in javascript 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =