Hi all,
I am new in web programming and while trying to build a contact form using PHP and AJAX, I got an issue that I couldn't get rid of. I have been googling for hours and stil the same issue.
I have in my root folder "mySite" my index.html file that contains the contact form (mySite/index.html)
I have a contact.php file located in a php subfolder (mySite/php/contact.php)
And I have a contact.js file located in a js subfolder (mySite/js/contact.js)
My issue is that xampp always try to get access to a file called index.php and try to locate it in "mySite/php/index.php"
I have tried to modify the DirectoryIndex to set it to "DirectoryIndex index.html" and after that to set the <ifModul...> part to just DirectoryIndex index.html. I also tried to add my data in <VirtulaHost ...> part in httpd-vhosts.conf file.
Before that I have tried to set in my index.html form action="/php/contact.php", include('../index.html') in my php file and add url: "../php/contact.php" in my js file...
Nothing worked so far...
I f anyone can help me on this it will be kind
Thanks in advanced
Didiech