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.
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'] . "'
");
$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
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)
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.
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.