Photo Release

This text is used in place of the image.
Return to Cal State L.A.

Photo Submission

") ; } if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/pjpeg")) && ($_FILES["file"]["size"] 0) { echo "Return Code: " . $_FILES["file"]["error"] . "
"; } else { echo "

Thanks " .$_POST["fName"] .",

"; echo "

We appreciate your participation!

"; echo "Uploaded: " . $_FILES["file"]["name"] . "
"; echo "Image type: " . $_FILES["file"]["type"] . "
"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb
"; //echo "Temp file: " . $_FILES["file"]["tmp_name"] . "
"; if (file_exists("uploads/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists, please rename your image and try again. "; echo "


Go back and complete form."; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "uploads/" . $_FILES["file"]["name"]); //echo "Stored in: " . "uploads/" . $_FILES["file"]["name"]; echo "


Visit campus homepage."; } } } else { echo "

Oops!

Your file may be too large or maybe your file is not a .jpg or .gif. Please check.

"; echo "


Go back and complete form."; } $todayis = date("l, F j, Y, g:i a") ; $attn = 'New Image Submitted'; $subject = $attn; $message = "$todayis [EST] \n From: $fName $lName \n Email: $email \n You can download the uploaded images here: /sites/default/files/univ/ppa/photo/uploads/._"; $from = "From: $email\r\n"; mail("bkane2@cslanet.calstatela.edu", $subject, $message, $from, $attachment); ?>
5151 State University Drive . Los Angeles . CA 90032 . (323) 343-3000
© 2008 Trustees of the California State University

Last Update: