vijay_wv
10-15-2004, 02:32 PM
Hello,
Here i am pasting my code but i don't know how to make it preview the text area in a pop up window before the user hits the submit button which goes into access database. Please help me.
<cfform action="electionresult.cfm" method="post">
<input type="hidden" name="OnsiteDate">
<table>
<tr>
<td> *Position <br>(Select one from the list)
</td>
<td>
<select name="Position">
<option value="President">President-Elect
<option value="Treasurer">Treasurer
<option value="Membership">Director-elect, Membership Interests and Services
<option value="Advocacy">Director-elect, Outreach and Advocacy
<option value="Generation">Director-elect, Generation and Dissemination of Knowledge
<option value="Commissions">Director-elect, Commissions
<option value="Multicultural">Chair, Standing Committee for Multicultural Awareness
<option value="Disabilities">Chair, Standing Committee for Disabilities
<option value="Lesbian">Chair, Standing Committee for Lesbian, Gay, Bisexual and transgender Awareness
<option value="Graduate">Chair, Standing Committee for Graduate Students and New Professionals
</select>
</td></tr>
<tr>
<td><br> *FirstName
</td>
<td><br>
<cfinput type="text" name="FirstName" alt="FirstName" message="Please enter the First Name" required="yes">
</td>
</tr>
<tr>
<td> <br>Middle Initial
</td>
<td><br>
<cfinput type="text" name="MiddleName" alt="MiddleName">
</td>
</tr>
<tr>
<td> <br>*LastName
</td>
<td><br>
<cfinput type="text" name="LastName" alt="LastName" message="Please enter the Last Name" required="yes">
</td>
</tr>
<tr>
<td> <br>Suffix
</td>
<td><br>
<cfinput type="text" name="Suffix" alt="Suffix">
</td>
</tr>
<tr>
<td> <br>Title
</td>
<td><br>
<cfinput type="text" name="Title" alt="Suffix">
</td>
</tr>
</table><tr>
<td> <br>*Statement of Goals (250 word limit). Please enter 2 carriage returns at the end of each paragraph.<br>
<br>
<textarea name="Goals" rows="10" cols="100"></textarea>
</td>
</tr>
<tr>
<td> <br><br>*Educational Degrees (listing of degrees earned and institutions, starting with most recent).<br>
Please enter 2 carriage returns at the end of each paragraph.
<br>
<textarea name="Education" rows="10" cols="100"></textarea>
</td>
</tr>
<tr>
<td> <br><br>*Professional Work History/Leadership Experiences/Professional Association Involvement (150 word limit).<br>
Please enter 2 carriage returns at the end of each paragraph.
<br>
<textarea name="Work" rows="10" cols="100"></textarea>
</td>
</tr>
<p>
<input type="button" value="ShowPreview">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</cfform>
Here i am pasting my code but i don't know how to make it preview the text area in a pop up window before the user hits the submit button which goes into access database. Please help me.
<cfform action="electionresult.cfm" method="post">
<input type="hidden" name="OnsiteDate">
<table>
<tr>
<td> *Position <br>(Select one from the list)
</td>
<td>
<select name="Position">
<option value="President">President-Elect
<option value="Treasurer">Treasurer
<option value="Membership">Director-elect, Membership Interests and Services
<option value="Advocacy">Director-elect, Outreach and Advocacy
<option value="Generation">Director-elect, Generation and Dissemination of Knowledge
<option value="Commissions">Director-elect, Commissions
<option value="Multicultural">Chair, Standing Committee for Multicultural Awareness
<option value="Disabilities">Chair, Standing Committee for Disabilities
<option value="Lesbian">Chair, Standing Committee for Lesbian, Gay, Bisexual and transgender Awareness
<option value="Graduate">Chair, Standing Committee for Graduate Students and New Professionals
</select>
</td></tr>
<tr>
<td><br> *FirstName
</td>
<td><br>
<cfinput type="text" name="FirstName" alt="FirstName" message="Please enter the First Name" required="yes">
</td>
</tr>
<tr>
<td> <br>Middle Initial
</td>
<td><br>
<cfinput type="text" name="MiddleName" alt="MiddleName">
</td>
</tr>
<tr>
<td> <br>*LastName
</td>
<td><br>
<cfinput type="text" name="LastName" alt="LastName" message="Please enter the Last Name" required="yes">
</td>
</tr>
<tr>
<td> <br>Suffix
</td>
<td><br>
<cfinput type="text" name="Suffix" alt="Suffix">
</td>
</tr>
<tr>
<td> <br>Title
</td>
<td><br>
<cfinput type="text" name="Title" alt="Suffix">
</td>
</tr>
</table><tr>
<td> <br>*Statement of Goals (250 word limit). Please enter 2 carriage returns at the end of each paragraph.<br>
<br>
<textarea name="Goals" rows="10" cols="100"></textarea>
</td>
</tr>
<tr>
<td> <br><br>*Educational Degrees (listing of degrees earned and institutions, starting with most recent).<br>
Please enter 2 carriage returns at the end of each paragraph.
<br>
<textarea name="Education" rows="10" cols="100"></textarea>
</td>
</tr>
<tr>
<td> <br><br>*Professional Work History/Leadership Experiences/Professional Association Involvement (150 word limit).<br>
Please enter 2 carriage returns at the end of each paragraph.
<br>
<textarea name="Work" rows="10" cols="100"></textarea>
</td>
</tr>
<p>
<input type="button" value="ShowPreview">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</cfform>