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