...

View Full Version : HTML elements inconsistent when transformed to PHP.



ChrisPlantijn
11-07-2011, 07:48 PM
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
<?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 (http://i.imgur.com/3mesP.jpg)

If you would like to view this page live in order to download and view the HTML and CSS markup, here is the URL (http://racingintegration.com/contact.html)

Here is an image of the page as a PHP file.PHP Page (http://i.imgur.com/4T6LN.jpg)

If you woule like to view the live PHP page to download and view the markup and CSS, here is the URL (http://racingintegration.com/contact.php)

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.

teedoff
11-08-2011, 12:10 AM
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 (http://validator.w3.org/check?uri=http%3A%2F%2Fracingintegration.com%2Fcontact.html&charset=%28detect+automatically%29&doctype=Inline&group=0)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.

ChrisPlantijn
11-09-2011, 05:38 AM
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.

teedoff
11-09-2011, 04:22 PM
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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum