Jump to content

changing file extention to PHP


phppup

Recommended Posts

I have a form that was written and works well as an HTML file.  Now I've learned a little (tip of the iceberg, i'm sure) and want to place password protection BEFORE it.  To the best of my knowledge, this will require SESSIONS and turning my form into a PHP file.  (I assume LOTS of reading is ahead of me... LOL)

 

Can I simply change the extension to a PHP, add the <? tags > and just keep the HTML in place?

Or do I need to make it PHP and ECHO every line of code?

Or is there another way?

 

And while on the subject, does a PHP file require anything before publishing, the way an HTML requires the

<!DOCTYPE> information?

Link to comment
https://forums.phpfreaks.com/topic/258144-changing-file-extention-to-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.