first, write the form page orderform.html, and use the Post method to request the server-side script file:processorder.php
Orderform.html:
Order PageJason's Shopping list
processorder.php:
Order resultsJason's Shopping Cart
Order results
Time of order submission: '; Set the time zone date_default_timezone_set (' Asia/shanghai '); Outputs data in the specified format echo date (' y-m-d h:i '); Echo ''; Echo '
Your specific shopping list is:
'; echo $cloths. ' Pieces mens
'; echo $shoes. ' Pair of shoes
'; echo $glasses. ' Pair of glasses ';? >
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The above describes a simple example to demonstrate the use of PHP to access form variables, including the content of the contents, I hope that the PHP tutorial interested in a friend helpful.