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

2002-12-13 Thread liljim
Hi Andrew, "Andrew Wilson" <[EMAIL PROTECTED]> wrote in message: > > 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

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

2002-12-12 Thread Paul Chvostek
On Fri, Dec 13, 2002 at 02:19:07PM +1100, Andrew Wilson wrote: > > 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. Are you saying that your users will hit the

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

2002-12-12 Thread Doug Parker
I've solved similar things, i.e. removing commas from a number of text fields, by looping through the input boxes and doing a search/replace - all using Javascript via the onSubmit event. This chunk of code removes commas from input boxes:
for (var i = 0; i < form.elements.length; i++)