|
|
|
|
|
html file -------------- index.html
| CODE | <form action=script.php method=post> Enter your name <input type=text name=n> <input type=submit value=GO> </form>
|
php file --------------------- script.php
| CODE | <?
echo $n; //if register globals are set ON in you server php.ini file
//otherwise you will access variable via name of your method //if it as post (as above) then use array $_POST['n'] //if get then use $_GET['n']
echo $_POST['n'];
//or
echo "Hello Mr/Miss.$_POST[n]";
?>
|
|
|
|