So I have a form that allows users to attach documents by
browsing for the files. How would I check if a files exists where
the user doesn't use browse to attach a file but rather types in a
file and path name (and the file isn't found)?
<form action="Contact_Submission_Action.cfm" method="post"
enctype="multipart/form-data" name="contact_submission"
id="contact_submission"
onSubmit="MM_validateForm('Email','','RisEmail');return
document.MM_returnValue">
<table width="815" border="0" align="center"
class="submission_form">
<tr>
<td colspan="10"> </td>
</tr>
<tr>
<td colspan="2" class="fieldheaderleft">Your e-mail
address:<br><span
class="note">(required) </span></td>
<td colspan="8"><input type="text" name="Email"
size="50" value=""></td>
</tr>
<tr>
<td colspan="2" class="fieldheaderleft">Date to
publish this item: <span
class="note">(required) </span></td>
<td colspan="8"><input type="text" name="date"
value=" mm/dd/yy"></td>
</tr>
<tr>
<td colspan="2"
class="fieldheaderleft">Headline:</td>
<td colspan="8"><input type="text" name="Headline"
size="66" value=""></td>
</tr>
<tr>
<td colspan="2" class="fieldheaderleft">Attachment
#1:</td>
<td colspan="8"><input type="file"
name="attachment_1" size="50" value=""></td>
</tr>
<tr>
<td colspan="2" class="fieldheaderleft">Attachment
#2:</td>
<td colspan="8"><input type="file"
name="attachment_2" size="50" value=""></td>
</tr>
<tr>
<td colspan="2" class="fieldheaderleft">Attachment
#3:</td>
<td colspan="8"><input type="file"
name="attachment_3" size="50" value=""></td>
</tr>
<tr>
<td colspan="2" class="fieldheaderleft">Description of
related item (text for the link):</td>
<td colspan="8"><textarea name="WhatAdditional"
cols="50" rows="2"
id="WhatAdditional"></textarea></td>
</tr>
<tr>
<td colspan="2" class="fieldheaderleft">Comments or
additional instructions for this item:</td>
<td colspan="8"><textarea name="Comments" cols="50"
rows="6" wrap="VIRTUAL"
id="Headline"></textarea></td>
</tr>
<tr>
<td colspan="2"> </td>
<td colspan="8"><input type="submit" name="Send_
Email" value="Submit News Item"><input name="Clear form"
type="reset" value="Clear Form"></td>
</tr>
</table>
</form>
Thanks in advance,