473,383 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Website won't recognize my .php file?

Hey guys,

I am a noobie when it comes to PHP. Basically I just got done installing Apache, PHP, and MySQL. Now I am testing my PHP with a simple "contact us" form. I coded a simple html file to prompt a user for their name and password, and then the <form action="step2.php"> should be what is displayed once they hit submit (in this case I have the .php file displaying what they put into the input boxes). However, once I hit submit, it just displays "No webpage was found for the web address: step2.php". What have I done wrong?

Thanks,
Chase!
Aug 14 '10 #1
3 1753
So I have done some research and it appears it is because the URL is:

file:///C:/Websites/step1.html

and not:

http://localhost

or such. How is this fixed?
Aug 14 '10 #2
johny10151981
1,059 1GB
when you use
file:///C:/Websites/step1.html you are just accessing local files. local file always get treated as html file.

copy you step1.html file in your site root directory.

and also copy the the action file in the same directory
then open browser and type
http://localhost/step1.html
then try testing your pages
Aug 14 '10 #3
Thanks Johny! It worked perfectly after that.
Aug 14 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: brianj7675 | last post by:
php 4.3.6 windows xp i need to read a file and match a regular expressions with this pattern: "\r\ntitle" preg_match($title_reg, $line, $resB); $find_reg="\r\n$resB"; if (ereg($find_reg,...
8
by: Michael G. Schneider | last post by:
With Windows 2003 Server... Imagine the following scenario: there is a simple ASP page, for example just a single Response.Write statement. There is a virtual directory pointing to the...
1
by: Michael G. Schneider | last post by:
On Nov 16th I asked about a problem where ASP pages, which were located on a UNC-share, would not work correctly. IIS would not recognize, if the ASP page has been changed. Nobofy had a hint...
1
by: ASP Spam Fighter | last post by:
Hello all, I don't know how to get around this one... If anybody can help me with this problem, I would appreciate it very much. I've been trying to send a (large) file to the browser via a...
3
by: ASP Spam Fighter | last post by:
Curt_C Wrote: > open the request in a new window That would work fine for me, but I'm writing this script for people who believe that we must assume total and utter user stupidity. Since this...
3
by: Andy Fish | last post by:
Hi, I am trying to parse a file using Xerces' DOMParser.parse(String systemId) I have come across a problem where it refuses to open a file with curly braces "{" or "}" in the file name. I...
4
by: Mike Turco | last post by:
A2003. I haven't seen this before. You use File/New to create a new database in Access and call it DB1. Close Access, click on db1, Access opens and there's nothing there. Then I try opening the...
6
by: Jozef | last post by:
Hello, I've set up VS2003 on my laptop which is running Win XP pro in a stand alone situation, no domain or dc. When I try and "Create a blank solution", I use the Laptop IP address since...
9
by: David Veeneman | last post by:
I'm just getting started with ASP.NET, using VS 2005. As an exercise, I opened the root web site in VS 2005 and created a simple welcome page. I saved the page as Default.aspx and made sure that...
1
by: eraserwars | last post by:
I really cannot find anything wrong with this, I have checked it at least 5 times, and there is nothing I see that can make the driver not recognize the constructor. Ok, so here is my Rectangle...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.