•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 397,749 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,619 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 4663 | Replies: 1
![]() |
•
•
Join Date: Mar 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Below is html for a form... when the visitor hits the submit button i want the information to be sent to my email address... how do i do this?
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
lang=EN-GB style="COLOR: black; mso-ansi-language: EN-GB"><FONT size=3><FONT
face="Times New Roman"></FONT></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
lang=EN-GB
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-bidi-font-weight: bold">Don’t worry if you cannot complete all the fields, just
enter the information you can</SPAN><SPAN lang=EN-GB
style="COLOR: black; mso-ansi-language: EN-GB"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left></FONT></SPAN></SPAN></SPAN><A href="/lowrates_100521.html" ></A> <A href="/callnow08451227175_96095.html" ></A> <table border=0 cellspacing=0 cellpadding=3 border=1>
<form id="form671" onsubmit="return checkform671(this)" action="http://www.thankyouenquiry.bravehost.com/" method="post">
<tr vAlign="top">
<FORM action="/perl/general_form.mperl" method="post">
<input type="hidden" name="mailto" method="post" action="patrickw@btconnect.com">
<form action=/formsend.php method=POST id=form671 ONSUBMIT="return checkform671(this)">
<tr vAlign="top">
<tr valign=top>
<td align=right><font size=2><b>Title</b></font></td>
<td><select name="Title">
<option value="Mr">Mr
<option value="Mrs">Mrs
<option value="Ms">Ms
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Name</b></font></td>
<td><input type=text name="Name"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Address</b></font></td>
<td><input type=text name="Address"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Post Code</b></font></td>
<td><input type=text name="Post Code"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Work telephone</b></font></td>
<td><input type=text name="Work telephone"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Home Telephone</b></font></td>
<td><input type=text name="Home Telephone"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Mobile Telephone</b></font></td>
<td><input type=text name="Mobile Telephone"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Best Time To Contact</b></font></td>
<td><select name="Best Time To Contact">
<option value="9am to 12pm">9am to 12pm
<option value="12pm to 4pm">12pm to 4pm
<option value="4pm to 8pm">4pm to 8pm
</select>
</td>
</tr>
<TABLE>
<TR>
<TD COLSPAN="2"><P><font color="blue" face="verdana" size="1"> </P>
<p align="justify">For mortgage enquiries we require an active E-mail address. This enables us to notify you who will be contacting you prior to them doing so. This provision is required by the Financial Services Authority.</TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
</TR>
<tr valign=top>
<td align=right><font size=2><b>email address</b></font></td>
<td><input type=text name="email address"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Ist Applicant date of birth</b></font></td>
<td><input type=text name="Ist Applicant date of birth"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>2nd Applicant date of birth</b></font></td>
<td><input type=text name="2nd Applicant date of birth"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Mortgage Term (yrs)</b></font></td>
<td><input type=text name="Mortgage Term (yrs)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Have you received your valuation from your council yet?</b></font></td>
<td><select name="Have you received your valuation from your council yet?">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Have you asked a solicitor to act on your behalf for your right to buy purchase?</b></font></td>
<td><select name="Have you asked a solicitor to act on your behalf for your right to buy purchase?">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Is your property of standard construction (brick built and tiled/slate roof?</b></font></td>
<td><select name="Is your property of standard construction (brick built and tiled/slate roof?">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>What is the type of your property (House/Flat etc)</b></font></td>
<td><input type=text name="What is the type of your property (House/Flat etc)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Is this a single or joint application?</b></font></td>
<td><select name="Is this a single or joint application?">
<option value="Single">Single
<option value="Joint">Joint
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Total annual income £</b></font></td>
<td><input type=text name="Total annual income £"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Council valuation of the property (if known)£</b></font></td>
<td><input type=text name="Council valuation of the property (if known)£"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Discount right to buy price (if known) £</b></font></td>
<td><input type=text name="Discount right to buy price (if known) £"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Value of outstanding debts/loans/credit cards £</b></font></td>
<td><input type=text name="Value of outstanding debts/loans/credit cards £"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Do you have any credit problems</b></font></td>
<td><select name="Do you have any credit problems">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Any CCJ's (if yes details)</b></font></td>
<td><input type=text name="Any CCJ's (if yes details)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Any Defaults (if yes details)</b></font></td>
<td><input type=text name="Any Defaults (if yes details)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Rent Arrears (if yes details)</b></font></td>
<td><input type=text name="Rent Arrears (if yes details)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>IVA (if yes details)</b></font></td>
<td><input type=text name="IVA (if yes details)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Any late or missed payments on loans</b></font></td>
<td><input type=text name="Any late or missed payments on loans"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Any comments on any credit issues</b></font></td>
<td><textarea name="Any comments on any credit issues" rows=8 cols=30></textarea></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>If Flat how many floors</b></font></td>
<td><input type=text name="If Flat how many floors"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Can we perform a credit check</b></font></td>
<td><select name="Can we perform a credit check">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<input type=hidden name=siteid value=10294>
<tr><td colspan=2 align=center><input type=submit value="Submit"></td></tr>
</form></table><script language="JavaScript">
<!--
function checkform671(form) {
if (!form['Title'].value) {
alert("'Title' is required and must be entered");
return false;
}
if (!form['Name'].value) {
alert("'Name' is required and must be entered");
return false;
}
if (!form['Address'].value) {
alert("'Address' is required and must be entered");
return false;
}
if (!form['Post Code'].value) {
alert("'Post Code' is required and must be entered");
return false;
}
if (!form['Work telephone'].value) {
alert("'Work telephone' is required and must be entered");
return false;
}
if (!form['Home Telephone'].value) {
alert("'Home Telephone' is required and must be entered");
return false;
}
if (!form['Mobile Telephone'].value) {
alert("'Mobile Telephone' is required and must be entered");
return false;
}
if (!form['Best Time To Contact'].value) {
alert("'Best Time To Contact' is required and must be entered");
return false;
}
if (!form['Ist Applicant date of birth'].value) {
alert("'Ist Applicant date of birth' is required and must be entered");
return false;
}
if (!form['Mortgage Term (yrs)'].value) {
alert("'Mortgage Term (yrs)' is required and must be entered");
return false;
}
if (!form['Have you received your valuation from your council yet?'].value) {
alert("'Have you received your valuation from your council yet?' is required and must be entered");
return false;
}
if (!form['What is the type of your property (House/Flat etc)'].value) {
alert("'What is the type of your property (House/Flat etc)' is required and must be entered");
return false;
}
if (!form['Do you have any credit problems'].value) {
alert("'Do you have any credit problems' is required and must be entered");
return false;
}
return true;
}
-->
</script>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
lang=EN-GB style="COLOR: black; mso-ansi-language: EN-GB"><FONT size=3><FONT
face="Times New Roman"></FONT></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
lang=EN-GB
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-bidi-font-weight: bold">Don’t worry if you cannot complete all the fields, just
enter the information you can</SPAN><SPAN lang=EN-GB
style="COLOR: black; mso-ansi-language: EN-GB"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left></FONT></SPAN></SPAN></SPAN><A href="/lowrates_100521.html" ></A> <A href="/callnow08451227175_96095.html" ></A> <table border=0 cellspacing=0 cellpadding=3 border=1>
<form id="form671" onsubmit="return checkform671(this)" action="http://www.thankyouenquiry.bravehost.com/" method="post">
<tr vAlign="top">
<FORM action="/perl/general_form.mperl" method="post">
<input type="hidden" name="mailto" method="post" action="patrickw@btconnect.com">
<form action=/formsend.php method=POST id=form671 ONSUBMIT="return checkform671(this)">
<tr vAlign="top">
<tr valign=top>
<td align=right><font size=2><b>Title</b></font></td>
<td><select name="Title">
<option value="Mr">Mr
<option value="Mrs">Mrs
<option value="Ms">Ms
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Name</b></font></td>
<td><input type=text name="Name"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Address</b></font></td>
<td><input type=text name="Address"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Post Code</b></font></td>
<td><input type=text name="Post Code"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Work telephone</b></font></td>
<td><input type=text name="Work telephone"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Home Telephone</b></font></td>
<td><input type=text name="Home Telephone"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Mobile Telephone</b></font></td>
<td><input type=text name="Mobile Telephone"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Best Time To Contact</b></font></td>
<td><select name="Best Time To Contact">
<option value="9am to 12pm">9am to 12pm
<option value="12pm to 4pm">12pm to 4pm
<option value="4pm to 8pm">4pm to 8pm
</select>
</td>
</tr>
<TABLE>
<TR>
<TD COLSPAN="2"><P><font color="blue" face="verdana" size="1"> </P>
<p align="justify">For mortgage enquiries we require an active E-mail address. This enables us to notify you who will be contacting you prior to them doing so. This provision is required by the Financial Services Authority.</TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
</TR>
<tr valign=top>
<td align=right><font size=2><b>email address</b></font></td>
<td><input type=text name="email address"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Ist Applicant date of birth</b></font></td>
<td><input type=text name="Ist Applicant date of birth"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>2nd Applicant date of birth</b></font></td>
<td><input type=text name="2nd Applicant date of birth"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Mortgage Term (yrs)</b></font></td>
<td><input type=text name="Mortgage Term (yrs)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Have you received your valuation from your council yet?</b></font></td>
<td><select name="Have you received your valuation from your council yet?">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Have you asked a solicitor to act on your behalf for your right to buy purchase?</b></font></td>
<td><select name="Have you asked a solicitor to act on your behalf for your right to buy purchase?">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Is your property of standard construction (brick built and tiled/slate roof?</b></font></td>
<td><select name="Is your property of standard construction (brick built and tiled/slate roof?">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>What is the type of your property (House/Flat etc)</b></font></td>
<td><input type=text name="What is the type of your property (House/Flat etc)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Is this a single or joint application?</b></font></td>
<td><select name="Is this a single or joint application?">
<option value="Single">Single
<option value="Joint">Joint
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Total annual income £</b></font></td>
<td><input type=text name="Total annual income £"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Council valuation of the property (if known)£</b></font></td>
<td><input type=text name="Council valuation of the property (if known)£"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Discount right to buy price (if known) £</b></font></td>
<td><input type=text name="Discount right to buy price (if known) £"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Value of outstanding debts/loans/credit cards £</b></font></td>
<td><input type=text name="Value of outstanding debts/loans/credit cards £"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Do you have any credit problems</b></font></td>
<td><select name="Do you have any credit problems">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Any CCJ's (if yes details)</b></font></td>
<td><input type=text name="Any CCJ's (if yes details)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Any Defaults (if yes details)</b></font></td>
<td><input type=text name="Any Defaults (if yes details)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Rent Arrears (if yes details)</b></font></td>
<td><input type=text name="Rent Arrears (if yes details)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>IVA (if yes details)</b></font></td>
<td><input type=text name="IVA (if yes details)"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Any late or missed payments on loans</b></font></td>
<td><input type=text name="Any late or missed payments on loans"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Any comments on any credit issues</b></font></td>
<td><textarea name="Any comments on any credit issues" rows=8 cols=30></textarea></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>If Flat how many floors</b></font></td>
<td><input type=text name="If Flat how many floors"></td>
</tr>
<tr valign=top>
<td align=right><font size=2><b>Can we perform a credit check</b></font></td>
<td><select name="Can we perform a credit check">
<option value="Yes">Yes
<option value="No">No
</select>
</td>
</tr>
<input type=hidden name=siteid value=10294>
<tr><td colspan=2 align=center><input type=submit value="Submit"></td></tr>
</form></table><script language="JavaScript">
<!--
function checkform671(form) {
if (!form['Title'].value) {
alert("'Title' is required and must be entered");
return false;
}
if (!form['Name'].value) {
alert("'Name' is required and must be entered");
return false;
}
if (!form['Address'].value) {
alert("'Address' is required and must be entered");
return false;
}
if (!form['Post Code'].value) {
alert("'Post Code' is required and must be entered");
return false;
}
if (!form['Work telephone'].value) {
alert("'Work telephone' is required and must be entered");
return false;
}
if (!form['Home Telephone'].value) {
alert("'Home Telephone' is required and must be entered");
return false;
}
if (!form['Mobile Telephone'].value) {
alert("'Mobile Telephone' is required and must be entered");
return false;
}
if (!form['Best Time To Contact'].value) {
alert("'Best Time To Contact' is required and must be entered");
return false;
}
if (!form['Ist Applicant date of birth'].value) {
alert("'Ist Applicant date of birth' is required and must be entered");
return false;
}
if (!form['Mortgage Term (yrs)'].value) {
alert("'Mortgage Term (yrs)' is required and must be entered");
return false;
}
if (!form['Have you received your valuation from your council yet?'].value) {
alert("'Have you received your valuation from your council yet?' is required and must be entered");
return false;
}
if (!form['What is the type of your property (House/Flat etc)'].value) {
alert("'What is the type of your property (House/Flat etc)' is required and must be entered");
return false;
}
if (!form['Do you have any credit problems'].value) {
alert("'Do you have any credit problems' is required and must be entered");
return false;
}
return true;
}
-->
</script>
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- submit button code (Perl)
- how to set the multiple submit button in asp (ASP)
- submit button (JSP)
- VB6 submit button sends information to BBChat (Visual Basic 4 / 5 / 6)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Need help with Image Swaping in Javascript
- Next Thread: Using Javascript code in ASP.NET


Linear Mode