Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •