Re: [PHP] Check for spaces..

2001-01-11 Thread Jason Murray
David Smith wrote: > > With the following code how can I check to see if the file being uploaded > has a space in it? Maybe replace them with a _ or reject them all > together... > I think you want: $new_fname = ereg_replace("[[:space:]]+", "_", $fname); Greetings, Jason -- Jason Murray Dev

[PHP] Check for spaces..

2001-01-11 Thread David Smith
With the following code how can I check to see if the file being uploaded has a space in it? Maybe replace them with a _ or reject them all together... if ($FileType== "none") { print "ERROR! - You must specify a File Type before we can begin the upload."; }