Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 1
    Please add the input you get and the result you expect. Commented May 18, 2016 at 5:38
  • 3
    This script has so much wrong with it that I don't even know where to begin....except maybe with: if this script is meant to process input from a HTML form, then do some basic research on writing CGI scripts before you write any code Commented May 18, 2016 at 5:45
  • I've included examples of how it is suppose to process and show result. It is suppose to process input from a HTML form. Sorry for the confusion. Commented May 18, 2016 at 6:06
  • 2
    So what happens if I enter "You suck; rm -fr /" as first name? Commented May 18, 2016 at 6:10
  • Agree with @cas. James, if you are processing input from an HTML form using this script, you are right now laying your server wide open to total destruction. Commented May 18, 2016 at 6:16