quick PHP help needed
Posted: Tue Aug 26, 2003 2:05 am
ok well ill admit that im very new to php and im just starting to learn. i have a problem that i hope one of you can solve for me. im having trouble passing information from a form in a html file to a separate php file.
what im dealing with now is something like this:
---the html file with the form ----
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<form method="post" action="calculate.php">
<input name="one" type="text">
<input type="submit" value="blah" name="submit">
</form>
</body>
</html>
----and this is calculate.php----
<?php
echo "$one";
?>
so what am i doing wrong?
what im dealing with now is something like this:
---the html file with the form ----
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<form method="post" action="calculate.php">
<input name="one" type="text">
<input type="submit" value="blah" name="submit">
</form>
</body>
</html>
----and this is calculate.php----
<?php
echo "$one";
?>
so what am i doing wrong?