Is it possible to hide code written in php in source code -


Below is my code, where I am writing a code in php and calling it in the body when I run it and the source See, the code appears. I've seen some such site where nothing is shown on the source but a form appears on the webpage. How can I do this?

  & lt ;? Php {$ avatar_form = '& lt; Form id = "avatar_form" enctype = "multipart / form-data" method = "post" verb = "myphoto.php" & gt; '; $ Avatar_form = '& Lt; H4 & gt; Change your avatar & lt; / H4 & gt; '; $ Avatar_form = '& Lt; Input type = "file" name = "avatar" required & gt; '; $ Avatar_form = '& Lt; P & gt; & Lt; Input type = "submit" value = "upload" & gt; & Lt; / P & gt; '; $ Avatar_form = '& Lt; / Form & gt; '; }? & Gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Avatar & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div & gt; & Lt ;? Php echo $ avatar_form; ? & Gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;   

Thanksgiving

Why not write in html? No code should be displayed in:

   & Lt; Title & gt; Avatar & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div & gt; & Lt; Form id = "avatar_form" enctype = "multipart / form-data" method = "post" verb = "myphoto.php" & gt; & Lt; H4 & gt; Change your avatar & lt; / H4 & gt; & Lt; Input type = "file" name = "avatar" required & gt; & Lt; P & gt; & Lt; Input type = "submit" value = "upload" & gt; & Lt; / P & gt; & Lt; / Form & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;   

Using PHP to simply echo HTML is sometimes not fast or useful, write it directly in the .html file.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -