Look at the strings section of the PHP online manual. The function of choice is probably something like str_replace(). Not sure if this is the correct thing, but I know you can do what you want with a PHP string function.
Good luck and make sure to keep those damn CC numbers nowhere on your machine. J On Wed, 19 Dec 2001 [EMAIL PROTECTED] wrote: >-We collect credit card info. on our site and send it to Verisign for >-processing. We collect the credit card info. on the last page of our >-registration form. We have about 50% of the credit card numbers declined >-because people use dashes in their cc number (even though our directions ask >-them not to). >- >-Is there anyway to incorporate the following function so that the dashes >-would be stripped out before going directly to Verisign for processing? or >-do I need to create a middle page that would validate the credit card info. >-before going to Verisign? If the latter is true, then is there a way I can >-run this validation "invisibly" - maybe using header(Location:....)? >- >- >-<? function clean_no($cc_no){// Remove non-numeric characters from $cc_no return >ereg_replace ('[^0-9]+', '', $cc_no); }?> >- >- >-Thanks for your help, Shawna >- >--- >-PHP General Mailing List (http://www.php.net/) >-To unsubscribe, e-mail: [EMAIL PROTECTED] >-For additional commands, e-mail: [EMAIL PROTECTED] >-To contact the list administrators, e-mail: [EMAIL PROTECTED] >- ************************************** John Huggins VANet 7101 Oriole Avenue Springfield, VA 22150 703-912-6453 703-912-4831 fax [EMAIL PROTECTED] http://www.va.net/ ************************************** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]