Difference between revisions of "Form Page"

From Pathology Education Instructional Resource
Jump to: navigation, search
Line 1: Line 1:
<syntaxhighlight lang="html5">
+
<syntaxhighlight lang="html5" enclose="div">
<code>
 
 
<html>
 
<html>
 
   <head>
 
   <head>
Line 20: Line 19:
 
   </body>
 
   </body>
 
</html>
 
</html>
</code>
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
{{This Is Your Brain On Informatics}}
 
{{This Is Your Brain On Informatics}}

Revision as of 03:33, 18 January 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>