note 13365 rejected and deleted from language.variables.external.php by philip
| From: | philip@php.net | Date: | Mon, 23 Jul 2001 16:11:45 +0000 |
| Subject: | note 13365 rejected and deleted from language.variables.external.php by philip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15706@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