PHP Scripting errors
| From: | Adam Reiswig | Date: | Wed, 14 May 2003 13:11:43 +0000 |
| Subject: | PHP Scripting errors | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19918@lists.php.net to get a copy of this message | ||
I have just installed php (along with mysql and apache) on my windows 2K
machine and everything seemed to be working correctly. I ran phpinfo()
and it returned exactly what I would expect. Possibly since this is my
first install of php ever I may not know what I should be looking for.
When I ran a form that passed two variables to a receiving php page the
page rendered correctly minus the data that should have showed up. I
used "get" to pass the variable data and the correct variables were in
the url string but not on the page itself. When I posted the two pages
at my website (its hosted and I expect set up correctly) the script ran
as it should. The data was in the URL and on the page. Below is the
form code and then after is the receiving php code.
***** welcomeform.html *****
<html><head><title>Welcome Form</title></head><body>
<form action="welcome.php" method="get">
First Name: <input type="text" name="firstname" id="firstname" /><br />
Last Name: <input type="test" name="lastname" id="lastname" /><br />
<input type="submit" value="GO!" />
</form>
</body></html>
***** welcome.php *****
<?php
echo "Welcome to my Website, $firstname $lastname!" ;
?>
If anyone knows why my scripts are running correctly at my hosted site
but not locally I'd be very grateful for any pointers. Thanks a lot.
-Adam Reiswig