Hi I tried to use the contact form script here hxxp://forums.digitalpoint.com/showthread.php?t=46366 I obviously replaced the "xxxx" But when I submit the form, it does not work. The HTTP 404 Not found error page comes up: The webpage cannot be found. When I look at my url, it shows: hxxp://www.xxxxxxxxxx.co.uk/%3C?php echo $_SERVER['REQUEST_URI']; ?> I tried using the same code on a free web hosting space, and it works. But not on my paid web space host.
Do you use it in .html file? There could be problem with PHP not parsing htm/html files. You can change the file extension to .php or add the line below to your .htaccess: AddType application/x-httpd-php .html Code (markup): but that might not work on every hosting. Also check the page source, to see if PHP is parsed properly - you shouldn't see any of the PHP code.
Yes I do use it in the .html file, more specifically on the contact html page so it wouldnt be wise to change the file extension to .php. Where can i find .htaccess? I dont have ssh access. I do see php code when I rollover the send message button
.htaccess can be uploaded through ftp, it's hidden, so you would need to enable showing hidden files in your ftp client. If there is no .htaccess file on your ftp, just create it and put there the line I wrote in previous post.
So change the extension of that file to .php and rewrite it to .html with .htaccess, like: RewriteEngine on RewriteRule ^yourfile.html$ yourfile.php Code (markup):
oh my god, that actually worked! Thank you very much for your kindness of helping me out. Seriously stressed me out. I wish there were more people like you willing to help. I am ever so grateful! Thank you