Brian
First, some things I see:
At the top of this document, you have the following tags:
<html>
<head>
</head>
<body>
Then, you have the same tags inside the PHP string
<head><title>Cichlid Profiles</title>
You need to remove the 4 tags and readd them inside the string.
Second, these types of problems will always happen when you are writing a html template intermingled with PHP source code. You should keep the HTML tags out of the PHP script. The problem can be in improper double quoting, slashing, etc.
Third, suppose you now have to go out and change the entire presentation for you website? Let's say you want to add another type of information about a Cichlid. If you have 1000 types of fish and 1000 web pages, you now have to go out and touch this entire file, retype all the information back in and regenerate the website again!
This is not a good way to do templating and you are setting yourself up for alot of work in the future.
I have a suggestion.
If I understand what you are doing, you are attempting to create static web pages through a template solution. If I am reading your code right, you are inputting some stuff from a form, and then writing out a new html file based on that input. These files are static web pages generated of fish information.
But I think there is a better way to do this for the long run. Suppose you have many different types of fish you want to show on your website (lets say 1000). And each has some unique data about it.
Rather than having 1000+ pages of fish information, you can use a different approach by using only ONE page to show the fish information. This one page would retrieve the information from the database and generate itself dynamically. This would allow your users to search your database making it a much cooler interface.
Also, I cannot imagine having 1000+ fish browser links on a web page for the user to navigate to find the right one. I hope this makes sense.
You can use the free mySQL database to create it . It's a little more work, but I think you will have a much more easier site to maintain.
Kerry Kobashi
Kobashi Computing