displaying the function of php

Millard Letko

New Member
i have a php code here and wondering how can this display what you have wrote in the box: i did this and it did display this one: "$input"; ?> "\[code\] <html> <head></head> <body> <form action="message.php" method="post"> Enter your message: <input type="text" name="msg" size="30"> <input type="submit" value="http://stackoverflow.com/questions/3656953/Send"> </form> </body> </html> \[/code\]===============this is my message.php\[code\] <html> <head></head> <body> <?php // retrieve form data $input = $_POST['msg']; // use it echo "You said: <i>$input</i>"; ?> </body> </html> \[/code\]=======This is what i get as view page source: \[code\] <html> <head></head> <body> <?php // retrieve form data $input = $_POST['msg']; // use it echo "You said: <i>$input</i>"; ?> </body> </html> \[/code\]
 
Back
Top