|
| |
You are subscribed to this thread form submit doesn't work on localhost but does on a real web se
View related threads:
(in this forum
| in all forums)
|
Logged in as: Guest
|
|
|
craigj1303
Posts: 46 Joined: 5/16/2007 Status: offline
|
You are subscribed to this thread form submit doesn't... - 9/6/2009 19:29:50
Hi I'm doing a PHP tutorial and using WAMP server as a localhost on my PC. As part of the tutorial on basic forms we had to test the "action" part of the form. We had to make the action refer to the same page the form was on (basicForm.php) by putting some PHP between the <head> tag. <?php
$username =$_POST['username'];
if ($username == "letmein") {
print ("Welcome back, friend!");
}
else {
print ("You're not a member of this site");
}
?> Can anyone tell me why the "print" function on this basic form works on my live web server but not on my localhost?: http://www.digitalcolours.co.uk/php/.../basicForm.php Thanks & regards Craig
|
|
|
|
ou812
Posts: 1705 Joined: 1/5/2002 From: San Diego Status: offline
|
RE: You are subscribed to this thread form submit doe... - 9/6/2009 20:36:28
Any messages, any error messages, is PHP installed on your localhost? Hard to say what it is without more information and knowing your local machine.
_____________________________
-brian Black Holes suck. EnterpriseDB: Enterprise-class relational database management system PostgreSQL: The world's most advanced open source database
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|