BASIC HTML FORM
<form target="_blank" action="dummy.php" method="post">
<input type="text" name="username">
<input type="submit" value="Submit">
</form>
<form>The HTML form.<input>Form fields.typeField type. For now, a simple text field and submit button. Will go through more in next few chapters.nameName of the field.valueOn submit button, this is the button text. If set on text field, this is the default text.
HTML FORM ATTRIBUTES
targetWhere to submit the form._selfIn same window, the default if not specified._blankIn a new tab.
actionSubmit to which script. Default is the current page.methodSubmission method.getShow the submitted form data in the URL. The default.postHide the submitted form data.
FORM SUBMISSION
Take note of how form submission work.
getForm data will be appended to the URL. Example –http://site.com/submit.php?username=Jon&gender=MalepostForm data is hidden, but can still be retrieved on the server-side. PHP example –echo $_POST["username"];
