note 68342 deleted from security.globals by nlopess
| From: | nlopess@php.net | Date: | Mon, 24 Jul 2006 08:44:12 +0000 |
| Subject: | note 68342 deleted from security.globals by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115076@lists.php.net to get a copy of this message | ||
Note Submitter: branatk at yahoo dot com
----
Here's a historical note dating back to PHP/FI for those that have used PHP for some time and
feel like, "Yes, this is how I thought PHP was designed."
Quoted from above: "Reliance on this directive was quite common and many people didn't
even know it existed and assumed it's just how PHP works."
Quoted from http://us3.php.net//manual/phpfi2.php#starting
<----Begin Quote Block---->
A simple example
Suppose you have a form:
<?php
<FORM ACTION="/cgi-bin/php.cgi/~userid/display.html" METHOD=POST>
<INPUT TYPE="text" name="name">
<INPUT TYPE="text" name="age">
<INPUT TYPE="submit">
</FORM>
?>
Your display.html file could then contain something like:
<?php echo "Hi $name, you are $age years old!<p>" ?>
It's that simple! PHP/FI automatically creates a variable for each form input field in your
form. You can then use these variables in the ACTION URL file.
<----End Quote Block---->
I never assumed this was how PHP worked. I was told this is how it worked! :-)