I'm using an html form to submit data directly into a mysql database using a php script. For some reason the pictures will not be uploaded fully into the database. This is when I don't use a multipart/form-data tag. When that occurs the pictures partially upload but when I put the tag in the pictures do not upload at all. Here is the html for the form. I believe that the script works because the pictures partially upload. Any help will be appreciated because I'm getting wicked frustrated. Here is the code for the form with the mutlipart/form-data info:
<div id="slform">
<h1 align="center">Post an Available Sub-Lease</h1>
<form action="signup_ac.php" enctype="multipart/form-data" method="post" name="tempslform" onsubmit="return validate_form(tempslform) && checkform(email) && validate(tempslform)">
<span>Rent:</span> $ <input name="rent" tabindex="1" size="3" maxlength="10" type="text" /><br/>
<span>Listing Title:</span> <input name="listingtitle" tabindex="1" size="30" maxlength="70" type="text" /><br/>
<span>Street and Cross Street:</span> <input name="stcst" tabindex="1" size="20" maxlength="40" type="text" /><br />
<span>Listing Description:</span><br />
<textarea name="listdesc" tabindex="1" cols="80" style="width: 60%" rows="10" type="text" align="center"></textarea><br />
<span>Reply to: </span> <input name="email" tabindex="1" class="req df" size="30" value="Your email address" maxlength="60" type="text" />
<input name="retype" tabindex="1" size="30" value="Retype email address" maxlength="60" type="text" /><br/>
<span>Street:</span>:
<input name="street" tabindex="1" size="20" maxlength="80" type="text" />
<span>Nearest Cross Street:</span> <input name="cstreet" tabindex="1" size="20" maxlength="80" type="text" /><br/>
<span>City:</span> <input name="city" tabindex="1" size="20" maxlength="80" type="text" />
<span class="std">State:</span> <input name="state" tabindex="1" size="3" maxlength="10" type="text" /><br/>
<input type="file" name="pic1" /><input type="file" name="pic2" /><br />
<input type="file" name="pic3" /><input type="file" name="pic4" /><br />
<button tabindex="1" type="submit" value="submit">Continue</button> </form>
</div>
Thanks ahead of time for any help. If you need any additional information let me know.