Jump to content

Second Enquiry Form


Baggy

Recommended Posts

We have an Enquiry Form on our website (not designed by me/us), which comprises the following files:

 

contact.html

email.html

email.php

fail.html

thanks.html

 

Obviously email.php is the script but email.html comprises code only (no design).

 

We wish to create a second Enquiry Form (to cover different subjects). It would seem logical to try to use most/all of the above files to do this, modifying as necessary.

 

However, assuming I can modify 'contact' (saving as say, contact_second), how can I re-use the other files to interact with it?

 

I am using Dreamweaver CS3. I hope someone can help please?

Link to comment
Share on other sites

Thanks for the response.

 

thanks for the response.

 

www.shirefinancial.co.uk/new_work/contact.html

 

that should be the 'work in progress' version of the site.

 

contact-protection.html was my attempt at the second enquiry form but it still has a lot of the features of the original contact.html in it. Although it looks OK in IE7 (not finished though), some attempts at using the form on other PC's has resulted in the emailed form arriving with some fields unpopulated and the titles appearing the same as in 'form 1' (contact.html).

 

I hope that makes sense?

Link to comment
Share on other sites

some attempts at using the form on other PC's has resulted in the emailed form arriving with some fields unpopulated and the titles appearing the same as in 'form 1' (contact.html).

 

That most likely means that you are using the same PHP processing code to send both forms, which would give you problems. Can you post the code form email.php? (remember to remove your email from the php code if it is in there to avoid spam)

Link to comment
Share on other sites

This is it - have removed the email addresses. Cheers

 

<?

if ($_REQUEST["email"]!="")

{

$msg = "";

$msg = $msg . "";

$msg = $msg . "

Quote Request from shirefinancial.co.uk
";

$msg = $msg . "

 

$msg = $msg . "

Enquiry Type:" . $_REQUEST["Enquiry_Type"] ." ".$_REQUEST["pfname"]." ".$_REQUEST["psname"]."";

$msg = $msg . "

Purchase Price ?:" . $_REQUEST["Purchase_Price"] . "";

$msg = $msg . "

Amount Required ?:" . $_REQUEST["Loan_Amount"] . "";

$msg = $msg . "

Repayment Type:" . $_REQUEST["Repayment_Type"] . "";

$msg = $msg . "

Term of Mortgage:" . $_REQUEST["Term"] . "";

 

$msg = $msg . "

IF REMORTGAGE";

 

$msg = $msg . "

Current Balance ?:" . $_REQUEST["Current_Balance"] . "";

$msg = $msg . "

Current Lender:" . $_REQUEST["Current_Lender"] . "";

$msg = $msg . "

Current Rate:" . $_REQUEST["Current_Rate"] . "";

 

$msg = $msg . "

EMPLOYMENT DETAILS";

 

$msg = $msg . "

Employment Type:" .$_REQUEST["Employment_Status"] . "";

$msg = $msg . "

Occupation:" . $_REQUEST["Occupation"] . "";

$msg = $msg . "

Gross Income:" . $_REQUEST["Gross_Income"] . "";

 

$msg = $msg . "

ADDITIONAL INFORMATION";

 

$msg = $msg . "

Additional Information:" . $_REQUEST["Comments"] . "";

 

$msg = $msg . "

PERSONAL DETAILS";

 

$msg = $msg . "

Title:" . $_REQUEST["title"] . "";

$msg = $msg . "

Surname:" . $_REQUEST["Surname"] . "";

$msg = $msg . "

Forename:" . $_REQUEST["Forename"] . "";

$msg = $msg . "

Email:" . $_REQUEST["email"] . "";

$msg = $msg . "

Address Line 1:" . $_REQUEST["Address1"] . "";

$msg = $msg . "

Address Line 2:" . $_REQUEST["Address2"] . "";

$msg = $msg . "

City:" . $_REQUEST["City"] . "";

$msg = $msg . "

Postal code:" . $_REQUEST["Post_Code"] . "";

$msg = $msg . "

Tel. Home:" . $_REQUEST["Tel_h"] . "";

$msg = $msg . "

Tel. Work:" . $_REQUEST["Tel_w"] . "";

$msg = $msg . "

Tel. Mobile:" . $_REQUEST["Mobile"] . "";

$msg = $msg . "

Preferred Contact Method:" . $_REQUEST["Pref_Contact"] . "";

$msg = $msg . "

";

$headers = "MIME-Version: 1.0\r\n";

$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

$headers .= "From: \r\n";

mail("xxxx@xxxx.co.uk,xxx@xxxx.co.uk,xxx@xxxx.com", "Quote Request From shirefinancial.co.uk", $msg, $headers);

header("location: thanks.html");

 

 

}

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...