cvs: phpdoc /en/faq html.xml

From: Date: Fri, 24 Jan 2003 19:46:14 +0000
Subject: cvs: phpdoc /en/faq html.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351264@lists.php.net to get a copy of this message
philip Fri Jan 24 14:46:14 2003 EDT Modified files: /phpdoc/en/faq html.xml Log: A little register_globals adjusting, a couple links to variables.external. Index: phpdoc/en/faq/html.xml diff -u phpdoc/en/faq/html.xml:1.18 phpdoc/en/faq/html.xml:1.19 --- phpdoc/en/faq/html.xml:1.18 Fri Jan 24 12:08:37 2003 +++ phpdoc/en/faq/html.xml Fri Jan 24 14:46:14 2003 @@ -1,12 +1,16 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18 $ --> +<!-- $Revision: 1.19 $ --> <chapter id="faq.html"> <title>PHP and HTML</title> <titleabbrev>PHP and HTML</titleabbrev> <para> PHP and HTML interact a lot: PHP can generate HTML, and HTML - can pass information to PHP. + can pass information to PHP. Before reading these faqs, it's + important you learn how to <link linkend="language.variables.external"> + retrieve variables from outside of PHP</link>. The manual page on + this topic includes many examples as well. Pay close attention to + what <literal>register_globals</literal> means to you too. </para> <qandaset> @@ -126,8 +130,9 @@ <question> <para> I'm trying to use an &lt;input type="image"&gt; tag, but - the $foo.x and $foo.y variables aren't available. - Where are they? + the <varname>$foo.x</varname> and <varname>$foo.y</varname> variables + aren't available. <varname>$_GET['foo.x']</varname> isn't existing + either. Where are they? </para> </question> <answer> @@ -144,10 +149,13 @@ <varname>foo.x</varname> and <varname>foo.y</varname>. </para> <para> - Because <varname>$foo.x</varname> and <varname>$foo.y</varname> are - invalid variable names in PHP, they are automagically converted to - <varname>$foo_x</varname> and <varname>$foo_y</varname>. That is, the - periods are replaced with underscores. + Because <varname>foo.x</varname> and <varname>foo.y</varname> would + make invalid variable names in PHP, they are automagically converted to + <varname>foo_x</varname> and <varname>foo_y</varname>. That is, the + periods are replaced with underscores. So, you'd access these variables + like any other described within the section on retrieving + <link linkend="language.variables.external">variables from outside of + PHP</link>. For example, <varname>$_GET['foo_x']</varname>. </para> </answer> </qandaentry>

« previous php.doc (#969351264) next »