cvs: phpdoc-tw /language variables.xml
| From: | Kevin Kee | Date: | Wed, 02 Jul 2003 16:08:41 +0000 |
| Subject: | cvs: phpdoc-tw /language variables.xml | ||
| Groups: | php.doc.tw | ||
| Request: | Send a blank email to doc-tw+get-65@lists.php.net to get a copy of this message | ||
kevinkee Wed Jul 2 12:08:41 2003 EDT
Modified files:
/phpdoc-tw/language variables.xml
Log:
sync with eng version
Index: phpdoc-tw/language/variables.xml
diff -u phpdoc-tw/language/variables.xml:1.3 phpdoc-tw/language/variables.xml:1.4
--- phpdoc-tw/language/variables.xml:1.3 Mon Jun 23 10:00:30 2003
+++ phpdoc-tw/language/variables.xml Wed Jul 2 12:08:40 2003
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="big5"?>
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.65 Maintainer: Kevin Status: ready -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.66 Maintainer: Kevin Status: ready -->
<chapter id="language.variables">
<title>¦UÃþÅܼÆ</title>
@@ -660,16 +660,14 @@
<programlisting role="php">
<![CDATA[
<?php
-if ($HTTP_POST_VARS['action'] == 'submitted') {
+if (isset($_POST['action']) && $_POST['action'] ==
'submitted') {
print '<pre>';
-
- print_r($HTTP_POST_VARS);
- print '<a href="'. $HTTP_SERVER_VARS['PHP_SELF']
.'">Please try again</a>';
-
+ print_r($_POST);
+ print '<a href="'. $_SERVER['PHP_SELF'] .'">Please try
again</a>';
print '</pre>';
} else {
?>
-<form action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>"
method="post">
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>"
method="POST">
Name: <input type="text" name="personal[name]"><br>
Email: <input type="text" name="personal[email]"><br>
Beer: <br>