PDA

View Full Version : Contact Form


davemooney
07-21-2003, 03:42 PM
Hi

I was wondering could anyone help me. i want a email form on my website so people can get in touch this makes the site look much better than just saying email us. so can anyone help me any script or somethink so i can have a contact form on my site where you can ask us a question etc.

You see these on site all the time

can anyone help please :D
dave

oracleguy
07-21-2003, 05:31 PM
You have to use a serverside language to send the email. e.g. PHP,ASP

You might be able to find a pre-made one at www.hotscripts.com

MotherNatrsSon
07-21-2003, 05:58 PM
You can also use cgi... Here is one that you do not even need to have CGI files in your directory. It is an extension for Dreamweaver but I copied and pasted the code here for you

<body>
<form action="http://www.response-o-matic.com/cgi-bin/rom.pl" method="POST">
<!-- Created with Guestbook-o-matic by Brendan Dawes bren@subnet.co.uk -->
<input type="hidden" name="your_email_address" value="Joe@yourdomain.com">
<input type="hidden" name="your_name" value="Joe">
<input type="hidden" name="email_subject_line" value="FeedBack">
<input type="hidden" name="required_fields" value="visitor_email_address">
<input type="hidden" name="thank_you_title" value="Thanks for your Feed Back">
<input type="hidden" name="return_link_url" value="http://yourhomepage.com">
<input type="hidden" name="return_link_name" value="Back to your homepage">
<input type="hidden" name="background_color" value="#FFFFFF">
<input type="hidden" name="text_color" value="#000000">
<input type="hidden" name="link_color" value="#000000">
<input type="hidden" name="visited_link_color" value="#000000">
<input type="hidden" name="active_link_color" value="#000000">
<!-- You can edit the form elements below ie add menus, radio buttons etc -->
<table>
<tr>
<td valign=TOP align=LEFT>Your E-mail Address:</td>
<td valign=TOP align=LEFT><input type="text" name="visitor_email_address">
</td>
</tr>
<tr valign=TOP align=LEFT>
<td>Your Name:</td>
<td valign=TOP align=LEFT><input type="text" name="visitor_name">
</td>
</tr>
<tr>
<td valign=TOP align=LEFT>Please send me your comments:</td>
<td valign=TOP align=LEFT><textarea name="comments" rows="6" cols="40"></textarea>
</td>
</tr>
<tr>
<td colspan=2 valign=TOP align=LEFT><input type="submit" name="submit" value="Send">
<input type="reset" name="reset" value="Reset">
</td>
</tr>
</table>
</form>
</body>

If you need help making changes ask and we can change the form to "fit" with your site. ie; colors, text, links..

MNS

davemooney
07-22-2003, 02:10 AM
Thanks very much for the code.

I have copied and paste it into my html on front page thats what i use to make my site and i does not seen to work it just brings the code up on the webpage what do i need to do to make it work?

MotherNatrsSon
07-22-2003, 02:36 AM
Start with a new page and put the code in between the <body> and </body> tags like it is in my reply. I have to shut down my computer for a few. Thunderstorm. Be back on a little later. If you can put a page online and post a link to it so I can "see" what you are doing.

MNS

davemooney
07-22-2003, 02:48 AM
Right what seems to be hapning is it changers the code in to the html and then posts what u posted in the webpage is that right if not let me no and ill upload it as you asked

MotherNatrsSon
07-22-2003, 04:55 AM
That is not right. All you should see on the page is a text vox for "them" to enter thier name, email addy, and a text area for additional comments, a "submit" button and a "reset" button.

Front Page may be changing the code around somehow.

I attached a pic of what it looks like.

MNS

davemooney
07-22-2003, 04:07 PM
Yes its strange ill try messing around with it a bit and see what happens etc and let you no. it is strange the way front page is doing this

davemooney
07-22-2003, 04:10 PM
this is what comes up in the html part on front page.
<body>
&lt;body&gt;<BR>&lt;form action="http://www.response-o-matic.com/cgi-bin/rom.pl"
method="POST"&gt;<BR>&lt;!-- Created with Guestbook-o-matic by Brendan Dawes <A
href="mailto:bren@subnet.co.uk">bren@subnet.co.uk</A> --&gt;<BR>&lt;input
type="hidden" name="your_email_address"
value="Joe@yourdomain.com"&gt;<BR>&lt;input type="hidden" name="your_name"
value="Joe"&gt;<BR>&lt;input type="hidden" name="email_subject_line"
value="FeedBack"&gt;<BR>&lt;input type="hidden" name="required_fields"
value="visitor_email_address"&gt;<BR>&lt;input type="hidden"
name="thank_you_title" value="Thanks for your Feed Back"&gt;<BR>&lt;input
type="hidden" name="return_link_url"
value="http://yourhomepage.com"&gt;<BR>&lt;input type="hidden"
name="return_link_name" value="Back to your homepage"&gt;<BR>&lt;input
type="hidden" name="background_color" value="#FFFFFF"&gt;<BR>&lt;input
type="hidden" name="text_color" value="#000000"&gt;<BR>&lt;input type="hidden"
name="link_color" value="#000000"&gt;<BR>&lt;input type="hidden"
name="visited_link_color" value="#000000"&gt;<BR>&lt;input type="hidden"
name="active_link_color" value="#000000"&gt;<BR>&lt;!-- You can edit the form
elements below ie add menus, radio buttons etc
--&gt;<BR>&lt;table&gt;<BR>&lt;tr&gt;<BR>&lt;td valign=TOP align=LEFT&gt;Your
E-mail Address:&lt;/td&gt;<BR>&lt;td valign=TOP align=LEFT&gt;&lt;input
type="text"
name="visitor_email_address"&gt;<BR>&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;tr
valign=TOP align=LEFT&gt;<BR>&lt;td&gt;Your Name:&lt;/td&gt;<BR>&lt;td
valign=TOP align=LEFT&gt;&lt;input type="text"
name="visitor_name"&gt;<BR>&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;tr&gt;<BR>&lt;td
valign=TOP align=LEFT&gt;Please send me your comments:&lt;/td&gt;<BR>&lt;td
valign=TOP align=LEFT&gt;&lt;textarea name="comments" rows="6"
cols="40"&gt;&lt;/textarea&gt;<BR>&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;tr&gt;<BR>&lt;td
colspan=2 valign=TOP align=LEFT&gt;&lt;input type="submit" name="submit"
value="Send"&gt;<BR>&lt;input type="reset" name="reset"
value="Reset"&gt;<BR>&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;/table&gt;<BR>&lt;/form&gt;<BR>&lt;/body&gt;<BR>

</body>

Do see what i mean its diffrent than the code that you gave me.
what do you think??

ronaldb66
07-22-2003, 04:19 PM
You should use "Paste as HTML", or something along those lines; the way you did it it converts the pointed brackets into HTML entities; it shouldn't do that.

By the way: shoudn't one sign up with Response-O-Matic to be able to use their service?

davemooney
07-22-2003, 04:24 PM
How do you mean use paste as HTML what i done is copy the code and paste it in front page could you explain a bit more please

thanks dave

ronaldb66
07-22-2003, 04:32 PM
... you mean Microsoft Frontpage? Hmmmm...
There should be a "HTML" tab on the bottom of your document when in edit mode; selecting this will show you the underlying code, and you should be able to paste it in there.

By the way; using Response-O-Matic seems free of charge and doesn't require registration; you do however need to supply some info in hidden fields, among which is your e-mail adress, reducing the usefulness of a form handler somewhat.

MotherNatrsSon
07-22-2003, 04:38 PM
Originally posted by ronaldb66

By the way; using Response-O-Matic seems free of charge and doesn't require registration; you do however need to supply some info in hidden fields, among which is your e-mail adress, reducing the usefulness of a form handler somewhat.

Response-O-Matic is a free Dreamweaver extension that allows someone with no CGI to have a response form.

Coulsd you explain how having an email addy in a hidden field reduces the usefulness?

I am totally unfamiliar with FrontPage, but know from reading here that it will do some things you do not want it to.

MNS

Ben@WEBProp
07-22-2003, 07:16 PM
Dear Dave:

I too am using Front Page, and although it does help to start there, do not rely on the graphical interface too much:D .

I have run into this Copy and Past problem before and the only way around it is to manually type everything in very carefully. To do this easily, make the Coding Forums page a 1/2 the screen size and make FrontPage the lower 1/2 of the screen size. Then you can easily read and type at the same time.

The reason you cannot Copy 'n' Paste is that when you paste, the <, >, and other various characters are substituted automaticly for their coding equivalents. You can Copy 'n' Paste from FrontPage to these forums, but you can NEVER even think about remotely even trying to Copy 'n' Paste-ing anything from here or anywhere else into your FrontPage Program...it will save you alot of headaches...and asprin...

-Ben

davemooney
07-22-2003, 07:27 PM
ahhh right i understand i will get typeing in a and hopefully this will work and once again thanks again for the code and the help oon this matter. i agree on front page it is ok for beginning do you no anyother good website programes that are good other than dreamwear.

regards dave

oracleguy
07-22-2003, 10:07 PM
Originally posted by MotherNatrsSon
Response-O-Matic is a free Dreamweaver extension that allows someone with no CGI to have a response form.

No, it's a company that offers that service. Guestbook-o-matic is a free Dreamweaver extension.

If you actually go to response-o-matic's website, they have a wizard or whatever to generate the code needed.

MotherNatrsSon
07-22-2003, 10:12 PM
Look at the zip file. It IS a Dreamweaver extension as is. That is how I got it. I just created a new page and clicked the mouse in Dreamweaver MX. Got the extension from Macromedia exchange...


MNS

edit:

The "title" of the extension is "Feedback-O-Matic"

davemooney
07-23-2003, 01:08 AM
Cheers for that email form i was about to start to copy it all out into front page then read the last few posts. I downloaded that Zip file and opend it and went to view source and the scouce opend in note pad then i copy from there and has worked. what do i do now just add my details such as email etc.

MotherNatrsSon
07-23-2003, 01:40 AM
Originally posted by davemooney
Cheers for that email form i was about to start to copy it all out into front page then read the last few posts. I downloaded that Zip file and opend it and went to view source and the scouce opend in note pad then i copy from there and has worked. what do i do now just add my details such as email etc.

These are the things you need to edit or change:

<input type="hidden" name="your_email_address" value="Joe@yourdomain.com"> //your email addy goes here
<input type="hidden" name="your_name" value="Joe">//your name "dave" goes here
<input type="hidden" name="email_subject_line" value="FeedBack">//subject line of email sent to you

<input type="hidden" name="thank_you_title" value="Thanks for your Feed Back">//you can change this title
<input type="hidden" name="return_link_url" value="http://yourhomepage.com">//link to the page you want your visitors to return to
<input type="hidden" name="return_link_name" value="Back to your homepage">//text for above link
<input type="hidden" name="background_color" value="#FFFFFF">//background color you want
<input type="hidden" name="text_color" value="#000000">//text color you want
<input type="hidden" name="link_color" value="#000000">//link color
<input type="hidden" name="visited_link_color" value="#000000">//visited link color
<input type="hidden" name="active_link_color" value="#000000">//active link color

You should be all set then. Be sure to TEST it before you make it active on your site.:thumbsup:

MNS

davemooney
07-23-2003, 01:56 AM
Ok cheers fella just easy stuff to change and i will test it out before it gows up. once again thanks for the help

Regards dave