Note that there are some explanatory texts on larger screens.

plurals
  1. POecho "<p>" . $value . "</p>";
    text
    copied!<p>Ok my first time asking question here. This as been very helpful in the past but now i'm lost. I'm trying to understand how php work with the help of a book. So i did the exercise as it was shown in the book and the result if not what it should be.</p> <p>Here's the code:</p> <p></p> <pre><code>&lt;div id="content"&gt; &lt;p&gt;Here's a record of everything in the REQUEST array:&lt;/p&gt; &lt;?php foreach($_REQUEST as $value) { echo "&lt;p&gt;" . $value . "&lt;/p&gt;"; } ?&gt; &lt;/div&gt; &lt;div id="footer"&gt;&lt;/div&gt; &lt;/body&gt; </code></pre> <p>And here's the result:</p> <blockquote> <p>Here's a record of everything in the REQUEST array:</p> <pre><code>" . $value . " "; } ?&gt; </code></pre> </blockquote> <p>Why is not showing the info it is suppose to? Thanks.</p> <hr> <p>Ok here's all the code:</p> <p>showRequestInfo.php</p> <blockquote> <p></p> </blockquote> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &gt; "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html &gt; xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta &gt; http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;link &gt; href="/wamp/www/livrephp/css/phpMM.css" type="text/css" &gt; rel="stylesheet" /&gt; &gt; &gt; &lt;title&gt;Untitled Document&lt;/title&gt; &lt;/head&gt; &gt; &gt; &lt;body&gt; &lt;div id="header"&gt;&lt;h1&gt;PHP &amp; MySQL: The Missing &gt; manual&lt;/h1&gt;&lt;/div&gt; &gt; &lt;div id="example"&gt;Example 3-2&lt;/div&gt; &gt; &gt; &lt;div id="content"&gt; &gt; &lt;p&gt;Here's a record of everything in the REQUEST array:&lt;/p&gt; &gt; &lt;?php foreach($_REQUEST as $value) { echo "&lt;p&gt;" . $value . "&lt;/p&gt;"; } ?&gt; &gt; &gt; &gt; &lt;/div&gt; &gt; &lt;div id="footer"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>And this goes with this file called "socialEntryForm.php"</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;link href="/wamp/www/livrephp/css/phpMM.css" rel="stylesheet" type="text/css" /&gt; &lt;title&gt;Untitled Document&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="header"&gt;&lt;h1&gt;PHP &amp; MySQL: The misiing manual&lt;/h1&gt;&lt;/div&gt; &lt;div id="example"&gt;Example -1&lt;/div&gt; &lt;div id="content"&gt; &lt;h1&gt;Join the missing manual (Digital) Social Club&lt;/h1&gt; &lt;p&gt;Please enter your online connections below:&lt;/p&gt; &lt;form action="../showRequestInfo.php" method="post"&gt; &lt;fieldset&gt; &lt;label for="first_name"&gt;First Name:&lt;/label&gt; &lt;input type="text" name="first_name" size="20" /&gt;&lt;br /&gt; &lt;label for="last_name"&gt;Last Name:&lt;/label&gt; &lt;input type="text" name="last_name" size="20" /&gt;&lt;br /&gt; &lt;label for="email"&gt;Email Address:&lt;/label&gt; &lt;input type="text" name="email" size="50" /&gt;&lt;br /&gt; &lt;label for="facebook_url"&gt;Facebook URL:&lt;/label&gt; &lt;input type="text" name="facebook_url" size="50" /&gt;&lt;br /&gt; &lt;label for="twitter_handle"&gt;Twitter Handle:&lt;/label&gt; &lt;input type="text" name="twitter_handle" size="50" /&gt;&lt;br /&gt; &lt;/fieldset&gt; &lt;br /&gt; &lt;fieldset class="center"&gt; &lt;input type="submit" value="Join The Club" /&gt; &lt;input type="reset" value="Clear and Restart" /&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;/div&gt; &lt;div id="footer"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload