Running HTML in a .PHP file
Hi guys I was working on a landing page and it required me to copy and paste all of my HTML code into a .php file. The code works and runs fine in HTML but as soon as it's copy-pasted into the PHP file none of the buttons or really anything work even when tested in the browser. Any help would be appreciated, I can provide the link to a pastebin of the .php file if needed.
The browser can read HTML differently than PHP does, for example paths to required files like CSS, JS, etc... Providing the pastebin would be great.
I figured out the problem with it, it wasn't necessarily the PHP it was a user error.
Note to beginners, never forget to redirect the style sheets when moving into new directories.
Do you have the HTML within the <?php ~php code~ ?> ?
U can ask for free email help from local webstudio in your area, they usually are welcome to help, so u can try it if the problem is still actual.