0% found this document useful (0 votes)
89 views

PHP Manual Summary

This document summarizes PHP and MySQL. PHP is an open-source scripting language especially suited for web development. MySQL is a relational database management system that allows for fast, robust storage and retrieval of data. The document also provides an example order form coded in HTML that sends form data to a PHP file called "processorder.php" using the POST method. This PHP file will then process and display the results of the submitted order.

Uploaded by

Renzi Vidal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views

PHP Manual Summary

This document summarizes PHP and MySQL. PHP is an open-source scripting language especially suited for web development. MySQL is a relational database management system that allows for fast, robust storage and retrieval of data. The document also provides an example order form coded in HTML that sends form data to a PHP file called "processorder.php" using the POST method. This PHP file will then process and display the results of the submitted order.

Uploaded by

Renzi Vidal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3

PHP MANUAL SUMMARY

BY: RENZI VIDAL

INTRODUCTION

Php
• Originally stood for Personal Home Page, but was changed in
line with GNU recursive naming convention (GNU = Gnu's Not
Unix) and now stands for PHP HyperText Preprocessor.
• Widely open-source scripting language
• especially suited for web development
• suited for web development

MYSQL
• very fast, robust
• multi-user, multi-thread server
• relational database management system (RDBMS)
• a server that controls access to your data
• ensures multiple user can work with it concurrently
• ensures only authorized users can obtain access
• it uses SQL (Structured Query Language) the standard database
query language worldwide

Database
• enables you to effieciently store, search, sort and receive
data

CODE FOR orderform.html:

<html>
<form action=”processorder.php” method=POST>
<table border=0>
<tr bgcolor=#cccccc>
<td width=150>ITEM</td>
<td with=15>QUANTITY</td>
</tr>
<tr>
<td>TIRES</td>
<td align=center>
<input type=text name=tireqty size=3 maxlength=3>
</td>
</tr>
<tr>
<td>OIL</td>
<td align=center><input type=text name=oilqty size=3
maxlength=3></td>
</tr>
<tr>
<td>SPARK PLUGS</td>
<td align=center><input type=text name=sparkqty size=3
maxlength=3></td>
</tr>
<tr>
<td colspan=2 align=center><input type=submit value=SUBMIT
ORDER></td>
</tr>
</table>
</form>
</html>

OBSERVATIONS:
• set the form's action to the name of the php script that will
process the customer's orders
• value of the action attribute is the URL that will be loaded
when user presses the submit button
• data that the user has typed in the form will be sent to this
URL via method specified in the method attribute either:
• GET = appended to the end of the URL
• POST = sent as a separate packet
• names of the force fields:
• tireqty
• oilqty
• sparkqty

PROCESSING FORMS:
• In order to process the form we'll need to create the script
mentioned in the ACTION attribute of the FORM tag called
“processorder.php”

HEADING CODE FOR processorder.php:

<html>
<head>
<title> BOB'S ORDER PARTS – ORDER RESULTS </title>
</head>
<body>
<h1>BOB'S AUTO PARTS<h1>
<h2>
ORDER RESULTS
<?
echo “<p>Order processed.”;
?>
<h2>
</body>
</html>

You might also like