I'm writing a PHP tutorial and I would like to display some forms where the users could enter values that are displayed in the same webpage, just as a demonstration.
The forms do nothing special, they only use print instructions to display the input.
I would like to know if these apparently innofensive forms could be a real danger for my server because of script injection.
The code that processes the form is:
<?php if (array_key_exists('user', $_POST)) { print "Hello, " . $_POST['user']; } else { print "Waiting for your input..."; } ?>