Hello,everybody!
I installed MAMP om my Mac ( running MACOSX 10.3.9),it works ok,but php 5.0 would not pass values.
In case of values to go from a form to php page for processing I am totally lost.IT IS a deadlock. Values entered do not stay.
Page 1.
<html>
<head>
<title>hello</title>
</head>
<body>
<center>
<form method = "post"
action = "process.php">
<h1> please enter your name:</h1>
<input type = "text"
name = "userName"
value = "">
<br>
<input type = "submit">
</center>
</body>
</html>
So here I input something and go to
Page2 (process.php)
<html>
<head>
<title>hello</title>
</head>
<body>
<center>
<h1>Greeting</h1>
<?
print "<h2>Hello,$userName!</h2>";
?>
</center>
</body>
</html>
The result is "Hello,!"
- and no nothing, the name entered in page 1 in gets kicked.
Maybe someone knows what is wrong.
Thanks.
Valery.
I installed MAMP om my Mac ( running MACOSX 10.3.9),it works ok,but php 5.0 would not pass values.
In case of values to go from a form to php page for processing I am totally lost.IT IS a deadlock. Values entered do not stay.
Page 1.
<html>
<head>
<title>hello</title>
</head>
<body>
<center>
<form method = "post"
action = "process.php">
<h1> please enter your name:</h1>
<input type = "text"
name = "userName"
value = "">
<br>
<input type = "submit">
</center>
</body>
</html>
So here I input something and go to
Page2 (process.php)
<html>
<head>
<title>hello</title>
</head>
<body>
<center>
<h1>Greeting</h1>
<?
print "<h2>Hello,$userName!</h2>";
?>
</center>
</body>
</html>
The result is "Hello,!"
- and no nothing, the name entered in page 1 in gets kicked.
Maybe someone knows what is wrong.
Thanks.
Valery.