Hello All, I was looking over the lesson posted by Curtis Poe & have questions I hope somebody (maybe Mr. Poe?) can help with.
The lesson is posted here: http://www.easystreet.com/~ovid/cgi_course/lesson_four/lesson_four_2.html The code in question is this piece here: 17: if ( $tainted_username =~ /^([a-zA-Z\d_]+)$/ ) 18: { 19: $username = $1; 20: } 21: else 22: { 23: display_page( $message ); 24: exit; 25: } OK... The questions... 1. Why doesn't "use strict" complain about the $1 not being declared? 2. How can I filter ALL of my form input variables with this regex? Or maybe better asked; How can this be WRITTEN to filter ALL of my form variables at once? Any & all enlightenment is welcome & appreciated. Thank you in advance for your time. -- Best regards, K.L. Hayes mailto:[EMAIL PROTECTED] +=====================================================+ + "Only two things are infinite, the universe and + + human stupidity, and I'm not sure about the former."+ + -- Albert Einstien + +=====================================================+ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]