Jump to content

bh

Members
  • Posts

    238
  • Joined

  • Last visited

Everything posted by bh

  1. @silkfire: "to check an input to make sure it only consists"
  2. hi, had you about http://php.net/manual/en/book.pcre.php? what is the type of the input? float? than maybe http://www.php.net/manual/en/function.is-float.php
  3. hi, heres an example: $sql = "SELECT * FROM content WHERE page = '$page'"; $res = mysql_query($sql) or die (mysql_error()); if (0 === mysql_num_rows($res)) { // page not found // send a header and exit } while($row = mysql_fetch_assoc($res)){
  4. and you want to get $_POST['file'] ??? are you sure? update: try to get $_FILES['file'] // var_dump($_FILES['file']);
  5. hi, so becouse not all user agent set this value, you have to check whether this property is exists or not. try to debug it (eg output the referer)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.