Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14115

Solved: symbol validation check question

$
0
0
Hi,

I have this code below which lets me validate folder names.

PHP Code:
$is_correct_foldername strpbrk($this->input->post('folder'), "\\/?%*:@#${}|\"<>"); 

How can I make sure folder name contains no spaces. As you can see in my strpbrk I have symbols that are not allow.

Thanks

Viewing all articles
Browse latest Browse all 14115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>