(HELP!)PHP image upload and PHP Mailer Form

I am running a new site where users can submit artwork, i want to accompany the upload with a small form so i can know who uploaded what etc etc. im new to PHP so please bare with me. you can see the mock form here http://www.conartistszine.com/submit.php

the html looks like this for SUBMIT.PHP


<?
//user defined variables
$abpath = "/homepages/11/d198354675/htdocs/conartistszine/submissions"; //Absolute path to where images are uploaded. No trailing slash
$sizelim = "yes"; //Do you want size limit, yes or no
$size = "3000000"; //What do you want size limited to be if there is one
$number_of_uploads = 4;  //Number of uploads to occur

if ($_REQUEST['submitted']){ // Begin processing portion of script

//all image types to upload
$cert1 = "image/pjpeg"; //Jpeg type 1
$cert2 = "image/jpeg"; //Jpeg type 2
$cert3 = "image/gif"; //Gif type
$cert4 = "image/ief"; //Ief type
$cert5 = "image/png"; //Png type
$cert6 = "image/tiff"; //Tiff type
$cert7 = "image/bmp"; //Bmp Type
$cert8 = "image/vnd.wap.wbmp"; //Wbmp type
$cert9 = "image/x-cmu-raster"; //Ras type
$cert10 = "image/x-x-portable-anymap"; //Pnm type
$cert11 = "image/x-portable-bitmap"; //Pbm type
$cert12 = "image/x-portable-graymap"; //Pgm type
$cert13 = "image/x-portable-pixmap"; //Ppm type
$cert14 = "image/x-rgb"; //Rgb type
$cert15 = "image/x-xbitmap"; //Xbm type
$cert16 = "image/x-xpixmap"; //Xpm type
$cert17 = "image/x-xwindowdump"; //Xwd type

$log = "";

for ($i=0; $i<$number_of_uploads; $i++) {

    //checks if file exists
    if ($img_name[$i] == "") {
        $log .= "No file selected for upload $i<br>";
    }

    if ($img_name[$i] != "") {
        //checks if file exists
        if (file_exists("$abpath/$img_name[$i]")) {
            $log .= "File $i already existed<br>";
        } else {

            //checks if files to big
            if (($sizelim == "yes") && ($img_size[$i] > $size)) {
                $log .= "File $i was too big<br>";
            } else {


                //Checks if file is an image
                if (($img_type[$i] == $cert1) or ($img_type[$i] == $cert2) or ($img_type[$i] == $cert3) or ($img_type[$i] == $cert4) or ($img_type[$i] == $cert5) or ($img_type[$i] == $cert6) or ($img_type[$i] == $cert7) or ($img_type[$i] == $cert8) or ($img_type[$i] == $cert9) or ($img_type[$i] == $cert10) or ($img_type[$i] == $cert11) or ($img_type[$i] == $cert12) or ($img_type[$i] == $cert13) or ($img_type[$i] == $cert14) or ($img_type[$i] == $cert15) or ($img_type[$i] == $cert16) or ($img_type[$i] == $cert17)) {
                    @copy($img[$i], "$abpath/$img_name[$i]") or $log .= "Sorry Couldn't copy image 1 to server<br>";
                    if (file_exists("$abpath/$img_name[$i]")) {
                        $log .= "Thanks, File $i was uploaded<br>";
                    }
                    } else {
                        $log .= "Sorry, File $i is not an image<br>";
                    }
                }
            }
        }


    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="conartists, conartistszine, conartists zine, graham austin, ***gotmom, grossface, grossfaced, graham thomas austin, austin graham, art zine, free art zine, austin texas, texas art zine" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<title>—con(ART)"is"ts.Z/I/N/E—</title>
<style type="text/css">
</style>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a*.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a*;}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms*[n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers*.document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args*)) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args*)) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver*; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr*; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args*)) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
//-->
</script>
<body onload="MM_preloadImages('images/navbar/homeOver.gif','images/navbar/submitOver.gif','images/navbar/zineOver.gif','images/navbar/featureOver.gif','images/navbar/storeOver.gif')"><div id="header"><img src="images/header.jpg" width="700" height="350" />
</div>
<div id="navbar">
  <table border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><a href="index.html" target="_top" onclick="MM_nbGroup('down','group1','Home','',1)" onmouseover="MM_nbGroup('over','Home','images/navbar/homeOver.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/navbar/homeUp.gif" alt="" name="Home" width="140" height="25" border="0" id="Home" onload="" /></a></td>
      <td><a href="submit.php" target="_top" onclick="MM_nbGroup('down','group1','Submit','',1)" onmouseover="MM_nbGroup('over','Submit','images/navbar/submitOver.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/navbar/submitUp.gif" alt="" name="Submit" width="140" height="25" border="0" id="Submit" onload="" /></a></td>
      <td><a href="zine.html" target="_top" onclick="MM_nbGroup('down','group1','Zine','',1)" onmouseover="MM_nbGroup('over','Zine','images/navbar/zineOver.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/navbar/zineUp.gif" alt="" name="Zine" width="140" height="25" border="0" id="Zine" onload="" /></a></td>
      <td><a href="feature.html" target="_top" onclick="MM_nbGroup('down','group1','Feature','',1)" onmouseover="MM_nbGroup('over','Feature','images/navbar/featureOver.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/navbar/featureUp.gif" alt="" name="Feature" width="140" height="25" border="0" id="Feature" onload="" /></a></td>
      <td><a href="store.html" target="_top" onclick="MM_nbGroup('down','group1','Store','',1)" onmouseover="MM_nbGroup('over','Store','images/navbar/storeOver.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="images/navbar/storeUp.gif" alt="" name="Store" width="140" height="25" border="0" id="Store" onload="" /></a></td>
    </tr>
  </table>
</div>
<div id="content">
    <h4 align="left">RULES FOR SUBMITTING ARTWORK!</h4>
    <div align="left">
      <ul>
        <li>All artwork must be submitted using the following image formats (.JPG, .GIF, .PNG, .BMP, TIFF, .IEF).</li>
        <li>Artwork must be no smaller than 640x480, we can work with most image sizes above 640x480 but keeping them within a reasonable size helps ensure that we are able to handle your image file</li>
        <li>All artwork must be submitted with some name, if you choose to remain anonymous then put &quot;ANONYMOUS&quot; under the name feild in the submission form</li>
        <li>You are able to submit up to 12 different works of art but it does not ensure that we will have space to use them all, if the artwork is good enough you might become our &quot;Featured Artist&quot;! </li>
      </ul>
    </div>
    <h4 align="left">SIDE NOTES! </h4>
    <div align="left">
      <ul>
        <li>By submitting artwork you are giving us full right to publish your artwork, all artwork used will be credited with your name and if you wish, a personal website or mailing address, we will never copy your artwork to another medium (such as t-shirts, coffee mugs, etc!) we will contact you before hand if something like that comes up, all art that is sold through our printed zine is merely to regain money for printing supplies and time.</li>
        <li>Submitting artwork does not garuntee that we will publish it but there is a great chance that even if we do not use it in the upcoming issure that we use it in the following so dont get your hopes down just yet!</li>
</ul>
</div>
<form action="" method="post" enctype=multipart/form-data> 
<p align="left">
  <label>First Name:
  <input name="firstname" type="text" id="firstname" />
  </label>
<p align="left">
  <label>Last Name:
  <input name="lastname" type="text" id="lastname" />
  </label>
<p align="left">
  <label>Email:
  <input name="email" type="text" id="email" />
</label>
<p align="left">
  <label>Your Website:
  <input type="text" name="textfield" />
  </label>

<p align="left">
  <label>
  <select name="subtype" id="subtype">
    <option>Submission Type:</option>
    <option value="photo">Photography</option>
    <option value="M/M">Mixed Media</option>
    <option value="drawing">Drawing</option>
    <option value="painting">Painting</option>
    <option value="other">Other</option>
  </select>
  </label>
<p align="left">Select Image Files (.JPG, .GIF, .PNG, .BMP, TIFF, .IEF)<br>
  <? 

for ($j=0; $j<$number_of_uploads; $j++) {
?>
  <input type=file name=img[] size=30>
  <br>
  <?
}
?>
  <input type="hidden" name="submitted" value="true">
  <p align="left">
    <input type="submit" name="submit" value="Submit">  
</form>
</div>
<div id="footer">
  <div align="center"><span class="linkbar"><a href="http://www.conartistszine.com/about.html">About Us</a> | <a href="mailto:comments@conartistszine.com">Contact Us</a> | <a href="http://www.myspace.com/conartistszine">MySpace</a> <a href="http://www.myspace.com/conartistszine" class="linkbar"><br />
  </a></span><span class="copyright">&copy; 2007 (www.conartistszine.com) All Rights And Images Reserved </span></div>
</div>
</body>
</html>

the MAILER.PHP form looks like this


<?PHP 
$to = "ADD YOUR EMAIL HERE"; 
$subject = "Results from your Request Info form";
$headers = "From: Form Mailer";
$forward = 0;
$location = "";

$date = date ("l, F jS, Y"); 
$time = date ("h:i A"); 



$msg = "Below is the result of your feedback form. It was submitted on $date at $time.

"; 

if ($_SERVER['REQUEST_METHOD'] == "POST") {
    foreach ($_POST as $key => $value) { 
        $msg .= ucfirst ($key) ." : ". $value . "
"; 
    }
}
else {
    foreach ($_GET as $key => $value) { 
        $msg .= ucfirst ($key) ." : ". $value . "
"; 
    }
}

mail($to, $subject, $msg, $headers); 
if ($forward == 1) { 
    header ("Location:$location"); 
} 
else { 
    echo "Thank you for submitting our form. We will get back to you as soon as possible."; 
} 

?>

and when the script runs i get this error:
Parse error: parse error, unexpected T_VARIABLE in /homepages/11/d198354675/htdocs/conartistszine/mailer.php on line **5

**my goal is to get the script to upload the files, send me an email telling me who uploaded what and when and then to take them either back to the home page or to lead them to a page saying something simple like “thanks for submitting blah blah blah” if anyone knows why its failing out please help me! im desperate! thanks so much