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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/259081-html-to-php/#findComment-1328235 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.