variables.error = arrayNew(1);
if (isdefined("form.title")) {
function IsEmail(str) {
if (REFindNoCase("^['_a-z0-9-]+(\.['_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([a-z]{2,3})|(aero|coop|info|museum|name))$",str)) return TRUE;
else return FALSE;
}
if (not len(form.title)) foo = arrayAppend(variables.error, "Please select your title");
if (not len(form.firstname)) foo = arrayAppend(variables.error, "Please enter your first name");
if (not len(form.lastname)) foo = arrayAppend(variables.error, "Please enter your last name");
if (not len(form.jobTitle)) foo = arrayAppend(variables.error, "Please enter your job title");
if (not len(form.companyname)) foo = arrayAppend(variables.error, "Please enter your company name");
if (not len(form.email)) {
foo = arrayAppend(variables.error, "Please enter your email address");
} else if ( not IsEmail(form.email) ) {
foo = arrayAppend(variables.error, "Your email address does not appear to be formatted correctly.");
}
if (not len(form.enquiry)) foo = arrayAppend(variables.error, "Please enter your enquiry");
}
if (isdefined("url.itemTypeID")) form.itemTypeID = url.itemTypeID;
INSERT INTO tblEnquiries (title, firstname, lastname, companyname, email, telephone, enquiry, jobTitle)
VALUES (
,
,
,
,
,
,
,
)
Thank you for your enquiry. We will respond as soon as possible.
Credit Today
#Application.vRoot#
An enquiry has been received from the web site.
Title: #form.title#
First name: #form.firstname#
Last name: #form.lastname#
Company name: #form.companyname#
Job Title: #form.jobTitle#
Email: #form.email#
Telephone: #form.telephone#
Enquiry:
#form.enquiry#
Thank you.
Contact Us
Thank you. We'll get back to you as soon as possible.
Please complete the enquiry form below to send us an e-mail.