phppup Posted March 16, 2012 Share Posted March 16, 2012 if I have a form written in HTML, can I simple place the HTML inside the PHP tags to create the PHP file, or do I need to ECHO each and every line within the PHP in order for it to be published correctly? Link to comment https://forums.phpfreaks.com/topic/259081-html-to-php/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 16, 2012 Share Posted March 16, 2012 Only php code goes inside of <?php ?> tags. If your form does not contain any php code, it would go outside of any <?php ?> tags. Anything in a .php file that is outside of any <?php ?> tags is sent as is to the browser. Link to comment https://forums.phpfreaks.com/topic/259081-html-to-php/#findComment-1328235 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.