RE: [PHP] Javascript multi text box form validation?
doh...RTFM Johnny! Thanks guys! -Original Message- From: Brad Pauly [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:07 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Javascript multi text box form validation? Johnny Martinez wrote: > Hi all, > I'm having an issue with quotes, slashes, and apostrophes being submitted > into text boxes and they are breaking my sql statements. So, I am trying to > do two things. > 1. javascript form validation to prevent the double quotes and slashes > 2. a sql_scrubber function to handle the apostrophes > > I am not strong in JS. I have found examples on the net for the form > validation but my problem is that I want to use the same function on each > text box for the testing of slashes and double quotes. > > Does anyone have or know of a location out there? Is their a better solution > for what I am trying to do? Thanks in advance. You might want to check out stripslashes(). http://us2.php.net/manual/en/function.addslashes.php - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Javascript multi text box form validation?
> 2. a sql_scrubber function to handle the apostrophes addslashes() http://www.php.net/manual/en/function.addslashes.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Javascript multi text box form validation?
Johnny Martinez wrote: Hi all, I'm having an issue with quotes, slashes, and apostrophes being submitted into text boxes and they are breaking my sql statements. So, I am trying to do two things. 1. javascript form validation to prevent the double quotes and slashes 2. a sql_scrubber function to handle the apostrophes I am not strong in JS. I have found examples on the net for the form validation but my problem is that I want to use the same function on each text box for the testing of slashes and double quotes. Does anyone have or know of a location out there? Is their a better solution for what I am trying to do? Thanks in advance. You might want to check out stripslashes(). http://us2.php.net/manual/en/function.addslashes.php - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Javascript multi text box form validation?
Hi all, I'm having an issue with quotes, slashes, and apostrophes being submitted into text boxes and they are breaking my sql statements. So, I am trying to do two things. 1. javascript form validation to prevent the double quotes and slashes 2. a sql_scrubber function to handle the apostrophes I am not strong in JS. I have found examples on the net for the form validation but my problem is that I want to use the same function on each text box for the testing of slashes and double quotes. Does anyone have or know of a location out there? Is their a better solution for what I am trying to do? Thanks in advance. Johnny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php