Hi Marek,
> safe enough would be to put this at the begining
> if(!ereg('^[0-9]+$',$song) {
> die('Sorry...')
> }Sure, but why incur the expense of using the ereg() parser? If you're only ever going to be testing whether $song is a number or not, use http://php.net/is-numeric. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

