Difference between revisions of "Form Page"

From Pathology Education Instructional Resource
Jump to: navigation, search
Line 22: Line 22:
  
 
{{This Is Your Brain On Informatics}}
 
{{This Is Your Brain On Informatics}}
 +
 +
[[Category:This Is Your Brain On Informatics]]

Revision as of 02:39, 19 March 2014

<html>
  <head>
    <title> <!--Determines the name of the HTML website, displayed on the the tab-->
	  HTML File
	</title>
  </head>
  
  <body>
    <form action="test.php" method="get"> <!--Introduces the form where action links to the php file-->
      <select name="var"> <!--Creates a selectable list (dropdown list)-->
        <option value="0">0</option> <!--Creates an option in a dropdown list where value refers to php variable $_GET['var']-->
        <option value="1">1</option>
      </select>
      
      <input name="ooga" type="text"></input> <!--Creates a textbox for input where name refers to the php variable as above-->
      <input type="submit" value="submit"></input> <!--Creates the submit button that creates an output with the value-->
    </form>
  </body>
</html>