PHP Tutorial: Order Form
Application Security Testing: An Integral Part of DevOps
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Acme Widget Company</title>
<body style="font-family: Arial">
Acme Widget Company</h1>
<p>Component Order Form</p>
<FORM ACTION="processorder.php" method=post>
<td align="center"><input type="text" name="qtybases" size="3" maxlength="3"></td>
<td align="center"><input type="text" name="qtystems" size="3" maxlength="3"></td>
<td align="center"><input type="text" name="qtytops" size="3"
<td colspan="2" align="center"><br>
<input type="submit" value="Enter Order"></td>
You can click here to see what this form looks like in your browser.
Now let's break it down. As with our last example, most of the code you see is ordinary HTML. Notice, however, that the ACTION= on the FORM statement points to a PHP file called processorder.php (the capitals we've used here are only to highlight to code we're talking about - it doesn't make any difference whether you use capitals or lowercase letters, except that the filename may be case sensitive if your site is hosted on a Unix/Linux system.).
There's really no PHP code in this form (which is why it's in a file named with a .html extension) so we'll move right along to the file that will process our order.
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...