473,408 Members | 1,771 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,408 software developers and data experts.

Strange Problems

Ok... I'm having a strange problem: I have a php signup page that I want to be able to display an error message on, but it starts to show some of the PHP code. My page is as follows:
[PHP]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Sign Up - The Zammarket</title>
</head>
<body style="background-color: rgb(51, 51, 0); color: rgb(255, 255, 51);" link="#00ff00">
<p text="#FF00FF" align="center">To get back to our
home page click <a href="index.htm">here</a></p>
<form method="post" action="signup.php">
<p align="center">
<?php
if (isset($GET['Error']))
{
if ($GET['Error'] == 1)
{
echo "<p>This Username Is Already Taken.</p>";
}
else if ($GET['Error'] == 2)
{
echo "<p>This Runescape Username Is Already Taken.</p>";
}
}
?>
Runescape Username: <input maxlength="12" name="RSUsername" size="12"><br>
Desired Username: <input maxlength="30" name="Username" size="20"><br>
Password (<b>NOT</b> RS password): <input maxlength="30" name="Password" size="20" type="password"><br>
<input value="Submit" name="B3" type="submit"><br>
<input value="Reset" name="B4" type="reset"></p>
</form>
</body>
</html>
[/PHP]

You can see the result on http://zammarket.freehostia.com/signup.htm
Jul 16 '07 #1
3 1186
pbmods
5,821 Expert 4TB
Heya, nazgul.

You're getting that behavior because your webserver is not set up to parse .htm files as PHP scripts.

If you have access to your server's httpd.conf file, verify that you have this line in there and then restart Apache.
Expand|Select|Wrap|Line Numbers
  1. AddType application/x-httpd-php .php .htm .html
  2.  
If you don't have access to that file, or if your server is not running Apache, try renaming your file to have a .php extension.
Jul 16 '07 #2
Thank You Very Much, that solved my problem.
Jul 16 '07 #3
pbmods
5,821 Expert 4TB
Heya, nazgul.

Thank You Very Much, that solved my problem.
Glad to hear you got it working! Good luck with your project, and if you ever need anything, post back anytime :)
Jul 17 '07 #4

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

Similar topics

1
by: ksedran | last post by:
Hi All, I am seeing a very strange issue with a winform I have. There are a few statements in the code, that at one point were working just fine. I had compiled the code a few days ago and...
5
by: Rob Ristroph | last post by:
Hi, It's pretty unhelpful to post "I have a huge piece of code that crashes in strange places, what's the problem?" but that's basically my problem and I really am at my wit's end. The piece...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
2
by: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net...
8
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and...
1
by: Larax | last post by:
Alright, so here's the problem. I define a global variable in my script and then add methods/properties to it. Everything works great, no error in Javascript Console. But when I refresh site,...
6
by: robert | last post by:
I get python crashes and (in better cases) strange Python exceptions when (in most cases) importing and using cookielib lazy on demand in a thread. It is mainly with cookielib, but remember the...
2
by: Paul Furman | last post by:
I don't know, maybe this isn't strange but someone else set up the shopping card coding I'm working with, the way it works is to get the time() in seconds like 1172693735 and that's the shopper_ID...
3
by: Shelly | last post by:
I am encountering two strange problems. First one: I get a "server misconfiguration error", but only sometimes. It occurs on the first screen that accesses the database on a submit. This error...
0
by: RickVidallon | last post by:
Missing or Truncated Body Text in Email Application - 2 Strange Examples... There is no earthly reason why this is happening! EXAMPLES HERE: http://65.36.227.70/actmailer/ We have a...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.