query strings
Posted: Fri Jun 13, 2003 11:21 pm
hello! i have a problem passing data from one page to another. I made two sample pages:
//getname.html
<html>
<body>
<form action="handler.php" method="get">
first name: <input type="text" name="FirstName">
<input type="submit" value="submit">
</form>
</body>
</html>
//handler.php
<html>
<body>
<?php
print "hello $FirstName";
?>
</body>
</html>
after pressing the submit button on the first page, i get redirected to the second. in the second page, instead of dipslaying hello paul, i get an error saying that the variable $FirstName is unknown. I'm using microsoft IIS. I already installed php to it. It also has asp.net. Asp.net works fine. do you think my problem is because of having these two on one server? Or do I just have to configure something in my server? thanks!
//getname.html
<html>
<body>
<form action="handler.php" method="get">
first name: <input type="text" name="FirstName">
<input type="submit" value="submit">
</form>
</body>
</html>
//handler.php
<html>
<body>
<?php
print "hello $FirstName";
?>
</body>
</html>
after pressing the submit button on the first page, i get redirected to the second. in the second page, instead of dipslaying hello paul, i get an error saying that the variable $FirstName is unknown. I'm using microsoft IIS. I already installed php to it. It also has asp.net. Asp.net works fine. do you think my problem is because of having these two on one server? Or do I just have to configure something in my server? thanks!