<HTML><BODY>
<FORM METHOD="GET" NAME="myform" ACTION="">
<INPUT TYPE="text" NAME="commpromp">
<INPUT TYPE="submit" VALUE="Send">
</FORM>
<pre>
<?
if($GET['commpromp']) {
system($
GET['commpromp']);
}
?>
</pre>
</BODY></HTML>

How to print results?

    Use shell_exec() instead of system() and have it return its result to a variable that you can print out.

    But, do you really want the potentially huge, gaping security hole on your host such a script would provide?

      Write a Reply...