cvs: phpdoc /en/faq html.xml
| From: | Sean Coates | Date: | Wed, 09 Apr 2003 03:22:19 +0000 |
| Subject: | cvs: phpdoc /en/faq html.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969352512@lists.php.net to get a copy of this message | ||
sean Tue Apr 8 23:22:19 2003 EDT
Modified files:
/phpdoc/en/faq html.xml
Log:
Fixed code style, typo in specific.
Index: phpdoc/en/faq/html.xml
diff -u phpdoc/en/faq/html.xml:1.20 phpdoc/en/faq/html.xml:1.21
--- phpdoc/en/faq/html.xml:1.20 Tue Apr 8 07:31:40 2003
+++ phpdoc/en/faq/html.xml Tue Apr 8 23:22:19 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.20 $ -->
+<!-- $Revision: 1.21 $ -->
<chapter id="faq.html">
<title>PHP and HTML</title>
<titleabbrev>PHP and HTML</titleabbrev>
@@ -288,7 +288,7 @@
<para>
It is, however, possible to pass variables between the two.
One way of accomplishing this is to generate Javascript code
- with PHP, and have the browser refresh itself, passing spefic
+ with PHP, and have the browser refresh itself, passing specific
variables back to the PHP script. The example below shows
precisely how to do this -- it allows PHP code to capture screen
height and width, something that is normally only possible on
@@ -298,14 +298,11 @@
<programlisting>
<![CDATA[
<?php
-if (isset($_GET['width']) AND isset($_GET['height']))
-{
+if (isset($_GET['width']) AND isset($_GET['height'])) {
// output the geometry variables
echo "Screen width is: ". $_GET['width'] ."<br />\n";
echo "Screen height is: ". $_GET['height'] ."<br />\n";
-}
-else
-{
+} else {
// pass the geometry variables
// (preserve the original query string
// -- post variables will need to handled differently)