Jump to content

discomatt

Members
  • Posts

    1,943
  • Joined

  • Last visited

    Never

Everything posted by discomatt

  1. I'm not enitrely sure of the inner workings, but a quick-fix would be to have javascript handle the submit for you... When the submit button is pressed, trigger a javascript function that re-enables the field then submits the form.
  2. I'm no mysql guru, but try escapting all mysql field names. Sometimes you can be using a reserved name without knowing it $query = mysql_query(" UPDATE `user` SET `password1` = MD5('" . mysql_escape_string($password1) . "'), `password2` = MD5('" . mysql_escape_string($password2) . "') WHERE `emailaddress1` = '" . $_SESSION['sessioname'] . "' ");
  3. do { $randomname = sha1(uniqid(rand(), true)) . $extension; } while (file_exists($randomname));
  4. Sessions is the easiest way. You can also dynamically generate hidden form fields to achieve this as well
  5. Nix or Win server? Is this a pre-built php script, or something you've coded yourself?
  6. That's got me stumped. According to the php manual, the function returns as such
  7. That would be javascript, not php. http://www.javascriptkit.com/script/script2/autofresh.shtml
  8. $cur['day'] = date('j'); $cur['month'] = date('n'); $cur['year'] = date('y'); That will fill it with the server's day/month/year at the moment of execution
  9. The ! before the function can pretty much be equated to == FALSE; so if (!function()) is the same as if (function() == FALSE) Be careful though... ! checks for both FALSE and 0.. so if your function returns a numeric value, and there's a chance it might be 0, be sure to use if (function() === FALSE)
  10. double post... delete sorry
  11. Lost a bit of data with the downfall... as I said before PHP doesn't have permission to create/write the file in the directory your are specifying. Try using an absolute path, and make sure the folder exists.
×
×
  • 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.