Skip to main content
Inspiring
Jan 25, 2019 4:24 PM UTC
Answered

Code is showing up on my website. How do I remove it?

I would appreciate some help. I am not a web designer or developer. I have been thrown into looking after my website since my guy quit. I have made some changes on Dream Weaver to my website without problems. But the Contact page would not load the changes I made. It's the only page that has html and a php files. The changes on the html wouldn't load. So I tried the php file. Mistake. Now the page shows the code and the toll free number I was trying to remove is still there. Plus when I go back to html it won't load now. Ideas? Career change? Thanks.

    This topic is closed to new replies. Start a new post to keep the conversation going.
    marthac15941951Correct answer
    Inspiring
    Jan 26, 2019 1:40 PM UTC

    I hope for your sake you have a back up copy of the original contact.php file someplace.


    Problem solved. Thanks so much for responding and your help.

    I'll be more careful about copying the info before I make changes.

    Have a great weekend!

    Martha

    On Fri, Jan 25, 2019 at 4:23 PM Martha Cameron <marthacameron081@gmail.com>

    21 replies

    Inspiring
    Jan 26, 2019 1:42 PM UTC

    Problem has been solved. Thanks to those offering help.

    Have a great weekend!

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Jan 25, 2019 6:36 PM UTC

    Use the online code validation tools below.

    Translate
    Nancy O'Shea— Product User & Community Expert
    Inspiring
    Jan 25, 2019 7:13 PM UTC

    Thanks Nancy but I don't know enough about coding to find the mistakes. I have now got it to where the site shows the contact page as php but if I manually change it to html the page is correct. cancunziplinetours/contact.html . But if you close and reopen the site it is automatically php and shows code. cancunziplinetours/contact.php . My question now is how do I get the site to use the html code on the Contact page and not the php code. If I can do that all will be fixed. Thanks.

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Jan 25, 2019 7:29 PM UTC

    HTML forms don't do anything.  They require scripts to gather and process form data.  If your contact form contains PHP code, then the whole page must be saved with a .php file extension.

    Can you copy and paste the entire contact.php code into a forum reply?   Don't use e-mail, it won't come through.

    Translate
    Nancy O'Shea— Product User & Community Expert
    Legend
    Jan 25, 2019 6:12 PM UTC

    For anyone to be able to help you they would need to see the code the page is currently using.

    Translate
    Inspiring
    Jan 25, 2019 6:16 PM UTC

    I should post the code online?

    Translate