Re: [PHP] Beginner question : Removing spaces in forms

2002-12-13 Thread Hugh Danaher
you could start with something like:
$old_string=44 55 99 111;
$new_string=ereg_replace( ,,$old_string);
echo $new_string;
should display
445599111
There are other regular expression aids listed on the page at:
http://www.php.net/manual/en/function.ereg-replace.php
Hope this helps,
Hugh

- Original Message -
From: Andrew Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 12, 2002 7:19 PM
Subject: [PHP] Beginner question : Removing spaces in forms



 Hay guys i was wondering if there was a form parameter of something
 equivalent for input text boxes that when a user enters a number or series
 of numbers that it removes the spaces.
 If there is no alternative how would you go about solving this issue.

 Your help is appreciated.
 Thanks.


 Netway Networks Pty Ltd
 (T) 8920 8877
 (F) 8920 8866



 --
 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




[PHP] Beginner question : Removing spaces in forms

2002-12-12 Thread Andrew Wilson

Hay guys i was wondering if there was a form parameter of something
equivalent for input text boxes that when a user enters a number or series
of numbers that it removes the spaces.
If there is no alternative how would you go about solving this issue.

Your help is appreciated. 
Thanks.


Netway Networks Pty Ltd 
(T) 8920 8877 
(F) 8920 8866 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php