Printing a form : print « Utility Function « PHP






Printing a form

 
<?php
    print <<<_HTML_
<form method="post" action="$_SERVER[PHP_SELF]">
Your Name: <input type="text" name="user">
<br/>
<input type="submit" value="Say Hello">
</form>
_HTML_;
?>
  
  








Related examples in the same category

1.Code Block Containing Multiple print() Statements
2.Interpolating array element values in double-quoted strings
3.Interpolating array element values with curly braces
4.Using parentheses with these constructs
5.Mix the output of date( ) with a text string to get a natural-looking statement
6.Mix variable with string output
7.Output string value
8.Output value of a variable wit print function