logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Dreamweaver General
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-12-2014, 05:28 PM   #1
LisaLotty
 
Join Date: Feb 2011
Posts: 22
Default Forms

Hi Guys
I have just constructed an enquiry form in dreamweaver using the forms text fields etc.
My form has 13 sections to collect data such as email, phone number but also there are a few questions in there.
It all looks very nice laid out but now I realise I must connect this form to my hosting company.
Within this code there is only name, email, and message.
Not sure how I would tie together my form with the hosts code that they have provided to add on my website. Do I add this code into the head and can I edit it so that it will include my info?

This is the code they have supplied to add to my website:

<form method="post" action="http://www.example.com/cgi-bin/FormMail.pl"
accept-charset="ISO-8859-1" onsubmit="var originalCharset = document.charset;
document.charset = 'ISO-8859-1';
window.onbeforeunload = function () {document.charset=originalCharset;};">
Name
<br />
<input name="realname" />
<br />
Email
<br />
<input name="email" />
<br />
Message
<br />
<textarea cols="40" rows="10" name="Message"></textarea>
<br />
<input type="submit" value="Send" />
<input type="hidden" name="recipient" value="email@example.com" />
<input type="hidden" name="subject" value="Subject" />
<input type="hidden" name="redirect"
value="http://www.example.com/thanks.html" />
<input type="hidden" name="missing_fields_redirect"
value="http://www.example.com/error.html" />
<input type="hidden" name="required" value="realname,email,Message" />
</form>
LisaLotty is offline   Reply With Quote
Old 03-13-2014, 01:16 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

they are pointing it to a mail handling script in the action http://www.example.com/cgi-bin/FormMail.pl"
This needs to point to a real script. Your hosting may have this for you . then you need to edit this to the correct location.
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 03-13-2014, 05:06 AM   #3
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

you could however use yur own script then we could perhaps help you more. I use php scripts while this is a pearl script and i have no experience with that
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:34 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com