cvs: phpdoc-hk /language variables.xml
[email protected] ("Kevin Kee") Wed, 02 Jul 2003 16:09:13 -0000
| Newsgroups | php.doc.hk |
|---|---|
| Message-ID | <cvskevinkee1057162153@cvsserver> |
kevinkee Wed Jul 2 12:09:13 2003 EDT
Modified files:
/phpdoc-hk/language variables.xml
Log:
sync with eng version
Index: phpdoc-hk/language/variables.xml
diff -u phpdoc-hk/language/variables.xml:1.7 phpdoc-hk/language/variables.xml:1.8
--- phpdoc-hk/language/variables.xml:1.7 Mon Jun 23 10:01:42 2003
+++ phpdoc-hk/language/variables.xml Wed Jul 2 12:09:12 2003
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="big5"?>
-<!-- $Revision: 1.7 $ -->
-<!-- EN-Revision: 1.65 Maintainer: Kevin Status: ready -->
+<!-- $Revision: 1.8 $ -->
+<!-- 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>