Thanks for your reply to my post about PHP and interacting with variables.
I tried what you posted, but got the following error:
Notice: Undefined index: user1 in C:\Program Files\Apache Group\Apache2\htdocs\login1.php on line 7
I triple checked the variable names and case. The text box is called user1 in my HTML file. I also tried turning on register_globals, but always got the same result:
Notice: Undefined variable: user1 in C:\Program Files\Apache Group\Apache2\htdocs\login1.php on line 9
Can it be something I configured wrong? I installed MySQL, Apache and PHP4 myself, so anything is possible.
For your reference, here's my HTML. Any help will be greatly appreciated.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body>
<form method="POST" action="http://192.168.0.1/login1.php">
Usuario: <input type="text" name=:"user1"><br>
<p>
<input type="submit" value="OK" name="B1">
<br>
<br>
</form>
</body>
and this is my login1.php:
<?php
echo "Welcome, ".$user1;
?>
This is the optional login1.php:
<?php
$a = $_POST['user1'];
echo "welcome, ".$a;
?>