Hello, when I use my contact form and it sends the email
I have a `if ($sucess) to go to a page and I have that .php file
in another folder titled “php” but when it goes to that page it
says page not found. is it that .php files cannot be in a folder?
// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=php/indexthanks.php#subscribe\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}
So I cant put php files in folders? why wont it direct there?
I think I know why because it needs to be within the same directory to
read stylesheets and such correct? I was treating these files like images folders
thinking it would work the same but it doesnt…
right that file is in a folder titled “php” and regardless if it does read
it its without the stylesheet and other things so it wont work either way. I
would have to duplicate my styles and scripts to that folder and thats just too
cumbersome…
ROOT: index.html (form is there) php folder (php files there)
the folder is in the same root.
regardless if it did work I would need my other content within the ‘php’ folder
thats why it would not get any style. but thanks anyways guys. im trying a different approach.
I have all the php files in my root folder now and I deleted ‘php’ folder.