note 13363 added to language.variables.external.php
| From: | pshakya1 at bemidjistate dot edu | Date: | Wed, 13 Jun 2001 15:31:07 +0000 |
| Subject: | note 13363 added to language.variables.external.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14313@lists.php.net to get a copy of this message | ||
//Content of form.php
<?php
echo "<form action=formhandel.php method=post>";
echo "Your Name: <input type=text name=myName>";
echo "<input type=submit name=submit value=Submit>";
echo "</form>";
?>
//Content of formhandel.php
<?php
echo "Your name is $myName";
?>
--------------------------------------
When we input value for myName as "Prakash" in form.php, output of formhandel.php will be
"Your name is Prakash".
If we do not want to use form.php for input, another way to input variable would be
formhandel.php?name=Prakash
http://www.php.net/manual/en/language.variables.external.php