note 13365 added to language.variables.external.php
| From: | pshakya1 at bemidjistate dot edu | Date: | Wed, 13 Jun 2001 15:34:40 +0000 |
| Subject: | note 13365 added to language.variables.external.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14317@lists.php.net to get a copy of this message | ||
My Previous post has one mistake this is corrected version.
//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?myName=Prakash
http://www.php.net/manual/en/language.variables.external.php