User Tools

Site Tools


basic_form

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
basic_form [2019/06/25 10:29]
nmckillop
basic_form [2019/09/10 11:06] (current)
nmckillop
Line 1: Line 1:
-==== Creating a basic HTML form ====+  * [[Getting Started|Back to Getting Started Overview]] 
 +  * [[Editing files|(previous) Getting Started Part 4: Editing files]] 
 + 
 +====== Getting Started Part 5: Basic HTML Form ====== 
 + 
 +===== Creating a basic HTML form ====
 + 
 +Create a new file on your server called ''​form.php''​ and enter this code.  Visit it in your browser and see the result.
  
 <​code>​ <​code>​
Line 8: Line 15:
 </​code>​ </​code>​
  
-=== Adding some PHP code to dump the form conents ===+==== Adding some PHP code to dump the form conents ​====
  
 <​code>​ <​code>​
Line 19: Line 26:
  
  
-=== Full working example ===+==== Full working example ​====
  
 <​code>​ <​code>​
Line 34: Line 41:
   ?>   ?>
 </​html>​ </​html>​
 +</​code>​
 +
 +===== Error reporting =====
 +
 +Add this to the very top of your file to enable error reporting and see how that changes the output of your ''​form.php''​ file.
 +
 +<​code>​
 +<?php
 +error_reporting(E_ALL);​
 +ini_set("​display_errors",​ 1);
 +?>
 </​code>​ </​code>​
  
 **Note:** We'll start with this, then explain how to make it not as full-of-errors :) **Note:** We'll start with this, then explain how to make it not as full-of-errors :)
 +
 +  * [[Getting Started Part 6|(next) Getting Started Part 6: What's Next]]
basic_form.1561458556.txt.gz · Last modified: 2019/06/25 10:29 by nmckillop