Create a "password" that concatenates an arbitrary selection of words from Lewis Carroll's poem "Jabberwocky" from Alice in Wonderland.
Features include an input box to specify the number of words to concatenate, a choice of separators, and the option to add a number and/or symbol.
To see the server-side validation messages, try a word a count of 10 or 1. Use a code inspector to change the input type to text to trip the is_numeric() condition.
UPDATE SEPT. 22: In my demo, I pointed out that I didn't notice a major flaw in the validation logic until very late and wasn't able to fix that before submitting the completed project. With Susan's permission, I have fixed that bug after submitting my assignment, with assistance from Dan. Thanks, Dan!
I referred to the following resources:
- PHP Manual - syntax, how to use functions
- ASCII Table - looked up ASCII values for "Add a symbol" option
- W3Schools - checked details of form tags/attributes (HTML) and learned how to check if the user had clicked the submit control yet
- Lewis Carroll Alice in Wonderland
Also, my thanks to classmates at Piazza for pointing me to the isset() command.