Showing RAW Form on HTML webpage -


this question has answer here:

i cant figure out how show form plain raw text on html webpage, keeps giving me form on page not raw text code.

<form name="myform" action="demo_form.asp" onsubmit="return validateform()" method="post"> name: <input type="text" name="fname"> <input type="submit" value="submit"> </form> 

to prevent html code being executed use &lt; , &gt; symbols replace < , >: https://jsfiddle.net/x5704lw3/

html

&lt;form name="myform" action="demo_form.asp" onsubmit="return validateform()" method="post"> <br>name: &lt;input type="text" name="fname"&gt; <br>&lt;input type="submit" value="submit"&gt; <br>&lt;/form&gt; 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -