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
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.";
}
2 matches
Mail list logo