Trying to work with two forms that are on the same page
Issue: I'm trying to get two forms that are on the same page (each with different actions) to be submitted by using just one submit button at the bottom of the page. The first portion of my form is the basic info, name, e-mail, phone number, address etc. Because there appears to be no way to upload a file (part 2 of my form) without a form tag, I need another form tag on the same page for my user to upload the file. Ideally, he will browse to get the file, the path will be in the text box, then, there will be one submit button to verify BOTH the user info and uploaded file are correct and I will send him to the one "thanks page." If some one knows of a CF_ tag please e-mail me or can create one for this purpose e-mail me. Mike
Comments
Problem solved...
All I had to do is put the resume browse control/text box in the same
form as the the first portion of my form with the basic info, name, e-mail,
phone number, address etc. I believe the reason this did NOT work the
first time is because I messed up the INPUT text box types! and I may
have omitted the filefield.
Moral of the story, make sure your type is correct and you include the filefield!:
<input type="file" size=30 name="Resume" filefield="Resume" tabindex="12" >
<table border="0" cellspacing="0" cellpadding="3">
<tr align="left">
<td width="107" valign="top"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">First
Name: </font> </td>
<td width="285" valign="middle"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
<cfinput name="FirstName" type="text" size="25" tabindex="1" required="yes" message="The 'First name' field has to be filled in.">
</font> </td>
</tr>
<tr align="left" valign="top">
<td colspan="4"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> Resume: </font> <font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
<input type="file" size="30" name="Resume" filefield="Resume" tabindex="12" >
<br>
<font size="-2">Recommended format
"<FirstName><LastName>".doc</font> </font> </td>
</tr>
<tr>
<td colspan="4">
<div align="center"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
<input type="submit" name="Submit" tabindex="13" value="Preview">
<input name="Input" type="reset" tabindex="14" value="Clear" onClick="index_goBack();">
</font> </div>
</td>
</tr>
</table>
You must me logged in to write a comment.