Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to make a contact from work with HTML and PHP

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #247937
    johned
    Participant

    I have made a simple contact form with HTML and PHP. I uploaded both files to my server but it still does not send when I try to send a e-mail. How are they supposed to be linked? For example I know how to link a html and css file together but I cannot see anywhere where it shows how the PHP file is linked to the HTML file. I have attached my code below (the PHP code is in the javascript box)
    http://codepen.io/Johned22/pen/YpGopW
    Where am I going wrong?
    Thanks in advance

    #247938
    Beverleyh
    Participant

    Looks like the script is part of this tutorial. It explains everything https://m.youtube.com/watch?v=tMmXzjJWlnU

    #247972
    johned
    Participant

    Thanks for your reply
    Yes I followed the video but I dont understand the putting the files on the server part at 12.45.
    This is the problem I have been having from the start. Do I just put both the html and php file in the public_html file in hostgator or do I link it to something else?
    Right now I placed both files in the public_html and it still does not work.
    Thanks

    #247975
    Beverleyh
    Participant

    “Does not work” isn’t enough info to diagnose the problem.

    Things you can check;

    • filenames must match those used in the code EXACTLY, including letter case, both in the file name and extension

    • file path must be correct. If in doubt use absolute paths in the code

    • check your server error logs for reasons why the script is failing

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.