OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

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
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> You are subscribed to this thread form submit doesn't work on localhost but does on a real web se
Page: [1]
 
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

(in reply to craigj1303)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> You are subscribed to this thread form submit doesn't work on localhost but does on a real web se
Page: [1]
Jump to: 1





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