Exampler.org SAS PYTHON HTML
HTML Home
HTML Table
HTML Form
HTML Button
HTML Checkbox
HTML Select
HTML Contact Form

HTML Contact Form;

What is it?

Syntax:

  • Complete Example


 Basic Contact Us Form (HTML Form Only):



<center>
<form> action='transmitmydata.php' method='post' >

     <input type='text' placeholder='First Name' name='first_name'
     <input type='text' placeholder='Last Name' name='last_name' ><br/>
     <input type='text' placeholder='Cell Phone' name='cell_phone' ><br/>
     <textarea placeholder='Enter Description Here' cols='50' rows='10' ></textarea><br/><br/>

     <input type='button' value='Submit'>

</form>
</center>




What's happening in the script above?

  • 4 Input Fields (firstname, lastname, cellphone and a text area)
  • Once the data is collected it's going to be sent to transmitymydata.php using POST method
  • There is no alignment of the form fields using CSS in this version but, you can see an example output below.
  • The text area has a few other parameters "Cols" and "Rows" which stand for columns and rows and their size
  • the "name" of each field is specified and they are required so they can be referenced later when the data arrives at transmitmydata.php


Example Output:








See also; HTML Form

See also; HTML Buttons

See also; HTML Iframe




Connect via LinkedIn

Kevin Regan

Have an article, idea, found a typo, want to contribute? Shoot me an email Here