Re: Is it a good idea-verifing incoming info

2003-08-17 Thread awards
Hi, thank you We ll you ask > Finally, why are you using a hash? Why not just store the values back > into param()? If you're dealing with a form that has checkboxes, or > multiple fields with the same name, you'll lose some data your way. I'm using a hash because the actual code is %ACTI

Re: Is it a good idea-verifing incoming info

2003-08-17 Thread Jeff 'japhy' Pinyan
On Aug 17, awards said: >I have many forms, and basically I just need to receive either a number >or characters or both. this is how I check To answer your subject line, YES, it is a good idea to verifying the data a user sends you is what you expect. >my ($value,%result,$name); $value and $nam

Is it a good idea-verifing incoming info

2003-08-17 Thread awards
Hi, I have many forms, and basically I just need to receive either a number or characters or both. this is how I check my ($value,%result,$name); foreach (param){ $name = $_; $name =~ s/\s$//;##take the space at the end $name =~ s/[^a-zA-Z0-9]//g;##all none character is change into n