Want to learn how to use php to save data in forms. How come this doesn't work in a html file?
I'm a newbie please bear with me. I just finished learning how to create forms in html. Now, I want to learn how to save and display the data using php. While following along the php exercises in w3, I tried running this file but it didn't work when saved as a
.html file. Could someone explain what I'm doing wrong and why the code text won't display? Thanks.
<!DOCTYPE html> <html> <body> <h1>My first PHP page</h1> <?php echo "Hello World!"; ?> </body> </html>