Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9007371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:40:18+00:00 2026-06-16T01:40:18+00:00

so I have my PHP file (it all works fine the php side of

  • 0

so I have my PHP file (it all works fine the php side of it I know this for a fact) located in xampp’s htdocs ‘contact.php’

so In my webpage I have it linked up to there “http://localhost/contact.php” however when I press the button and it runs the php i get “Not Found

HTTP Error 404. The requested resource is not found.”

am I linking it wrong? have I put it in the wrong folder (should I put it in the php www folder / how do I link that up?)

I have placed it in the www folder and am having problems still – I am unsure of how to correctly link it to the php www folder.

it is for a contact form – so my action is <form method="POST" action="http://localhost/contact.php">

my contact.html is as follows.

<div id="contact_form">
            <h4>Send us a message now!</h4>
<form method="POST" action="contact.php">
Fields marked (*) are required

<p>Email From:* <br>
<input type="text" name="EmailFrom">
 <p>Name:* <br>
<input type="text" name="Name">
<p>Email:* <br>
<input type="text" name="Email">
<p>Phone:* <br>
<input type="text" name="Phone">
<p>Message:<br>
<textarea name="Message"></textarea>
 <p><input type="submit" name="submit" value="Submit">
</form>
<p>
        </div>
    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:40:20+00:00Added an answer on June 16, 2026 at 1:40 am

    Possible problems

    1. Either, your contact.php would be in different directory.

    2. You are trying to access with WRONG URL, i mean path.

    3. You would have changed your port number to other. Check your Port Number, when you are accessing your main page (i.e. index.php or whatever).

    Suggestion

    If your index.php and contact.php are in same directory i.e. myproject. Then, it’s better to specify only contact.php rather than whole URL.

    Don’t

    <form method="POST" action="http://localhost/contact.php">
    

    Do

    <form method="POST" action="contact.php">
    

    Note : Always use relative URL instead of actual URL.

    UPDATE

    When you clicked on SUBMIT button, then check your current URL path, whether it is changed to contact.php or not ?? I mean, it must localhost/contact.html to localhost/contact.php And I believe, It must. Since, form is a part of html, which means it doesn’t matter whether your server is running or not. But, yes, if your contact.php would be in different directory. Then your problem still persist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use wp_insert_post from an external php file. This file works fine
I have created a basic flash socket server in PHP, it all works fine
Hi all, I have in my js file: function sendDataToPhp() { theUrl = 'myfile.php';
I have a PHP File with something like this: <script type=text/javascript> var page =
I have this ajax_update script that updates file.php every 60 seconds.. Now file.php outputs
I have a PHP form for uploading files and it works fine and displays
I have a PHP file that contains a large array (about 90KB). I'm considering
i have a php file which stores a variable, and i need to create
I have a PHP file with shell commands running through a screen, the commands
I have a php file setup to pull through ONE XML data feed, What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.