Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-07-2011, 07:48 PM   PM User | #1
ChrisPlantijn
New to the CF scene

 
Join Date: Sep 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ChrisPlantijn is an unknown quantity at this point
Question HTML elements inconsistent when transformed to PHP.

Hey, I'm trying to get a simple HTML5/PHP contact form working for this website.
When i type the markup for the form in HTML it is viewed semi-fine except for an h3 tag being inconsistent with the other h3's on the page.
Now, when i simply add a
Code:
<?php session_start() ?>
to the HTML file and save the entire markup as PHP i run into several problems. I have included pictures if you can help. This is very frustrating.

Here is an image of the page as an HTML file. HTML PAGE

If you would like to view this page live in order to download and view the HTML and CSS markup, here is the URL

Here is an image of the page as a PHP file.PHP Page

If you woule like to view the live PHP page to download and view the markup and CSS, here is the URL

I know I may be asking much, but any help would GREATLY be appreciated on this. I have been working on this for hours and just can't get anywhere on how to fix this.
ChrisPlantijn is offline   Reply With Quote
Old 11-08-2011, 12:10 AM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Hi Chris. I think you'd be well served to look at your coding validation errors and try to fix them. In particular, you dont have a valid doctype in your document. This is one of the most important things to help ensure cross browser compliance.

I viewed your page in IE and FF and they are very different, which may be a result of your errors. You can view them here and if you get stuck about how to fix them, post back here.

This may not fix your particular issues, but clean code is very important whne debugging.
__________________
Teed
teedoff is offline   Reply With Quote
Old 11-09-2011, 05:38 AM   PM User | #3
ChrisPlantijn
New to the CF scene

 
Join Date: Sep 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ChrisPlantijn is an unknown quantity at this point
Thank you teedoff. All I needed to do was validate the code. Sorry for potentially wasting some time. I'm just starting so I'm trying to learn the routine and get things down.

Again, thank you.
ChrisPlantijn is offline   Reply With Quote
Old 11-09-2011, 04:22 PM   PM User | #4
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Quote:
Originally Posted by ChrisPlantijn View Post
Thank you teedoff. All I needed to do was validate the code. Sorry for potentially wasting some time. I'm just starting so I'm trying to learn the routine and get things down.

Again, thank you.
Never a waste of time. And new coders dont always know that clean valid code is a great way first step in debugging.

So I assume your issue is resolved?
__________________
Teed
teedoff is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:20 PM.


Advertisement
Log in to turn off these ads.