@JayMFeb 27.2008 — #Unless you re-assign it a value it's going to remain the same. If you're working in an object oriented environment and want the static variable accessible among all classes, you would precede it with the [I]static[/I] keyword. But if you're working with procedural code, you don't need to worry about it.
// 1.a javascript off, we need to upload the file if (move_uploaded_file ($_FILES[0]['tmp_name'], $uploadFile)) { // delete the file // @unlink ($uploadFile); $html_body = '<h1>File successfully uploaded!</h1>'; } else { $html_body = '<h1>File upload error!</h1>';
switch ($_FILES[0]['error']) { case 1: $html_body .= 'The file is bigger than this PHP installation allows'; break; case 2: $html_body .= 'The file is bigger than this form allows'; break; case 3: $html_body .= 'Only part of the file was uploaded'; break; case 4: $html_body .= 'No file was uploaded'; break; default: $html_body .= 'unknown errror'; } $html_body .= 'File data received.'; }