Web Hosting Talk







View Full Version : "contact us" script code,help plz


rigliz
10-27-2009, 09:34 AM
hi,
i need a simple "contact us" script to my website page where the client can enter his/her :

Your Name :
Your Email :
Your Message :

i already found many scripts but very elaborate & most of time not working 100%,i need a script that can be added to HTML website page ( so that when the client enter his name/email & message,these data should be transfered to my email inbox & not mSQL DataBase)

thnx in advance,

FreeKill
10-27-2009, 10:32 AM
Are you using only HTML or a programming language like PHP?

rigliz
10-27-2009, 11:53 AM
Are you using only HTML or a programming language like PHP?

My bebsite is created as HTML document using Dreamweaver,maybe php programming will be compatible for my website

FreeKill
10-27-2009, 12:10 PM
I don't think you can make a form that emails you using only HTML, you have to also use a programming language such as PHP, JavaScript, ASP, Java etc. to make it work...

Doh004
10-27-2009, 12:21 PM
My bebsite is created as HTML document using Dreamweaver,maybe php programming will be compatible for my website

Can you tell us who your host is or what hosting package you have? More than likely you'll have php installed on the server.

rigliz
10-27-2009, 12:37 PM
Can you tell us who your host is or what hosting package you have? More than likely you'll have php installed on the server.

i'm using Linux hosting

i think javascipt can work well for my website

Doh004
10-27-2009, 12:43 PM
i'm using Linux hosting

i think javascipt can work well for my website

Javascript is a client side language and cannot do mailing. It sounds like you have PHP enabled on your hosting account, so let's just assume that.

In that case, it's very easy to make a PHP script that takes in the information submitted by the form and sends an email out to whomever. However, it's important that you add measures that prevent spamming of the email system, or compromising your system in any way.

rigliz
10-27-2009, 01:00 PM
Javascript is a client side language and cannot do mailing. It sounds like you have PHP enabled on your hosting account, so let's just assume that.

In that case, it's very easy to make a PHP script that takes in the information submitted by the form and sends an email out to whomever. However, it's important that you add measures that prevent spamming of the email system, or compromising your system in any way.

if u'v an examplary script do provide it to me plz to try it,but spamming i don't know how to control it,but i remember that i configured my domain name & activated SPF & DomainKeys ,

the_pm
10-27-2009, 01:30 PM
http://www.dbmasters.net/node/18
http://www.dbmasters.net/sites/dbmasters.net/files/formmailer.zip

Vinayak_Sharma
10-27-2009, 01:59 PM
Also you can check
http://www.hotscripts.com/category/php/scripts-programs/form-processors/

Lot of form scripts there, get one that is secure and can't be exploited by spammers, say something with referrer and captcha.

The-Pixel
10-27-2009, 02:13 PM
http://www.dbmasters.net/node/18
http://www.dbmasters.net/sites/dbmasters.net/files/formmailer.zip

Really great website! Thanks for sharing.

rigliz
10-27-2009, 05:12 PM
thnx for the link, but do u thin that this html code can work fine !

<form id="form" method="post" action="">
<p>Your Name<br /><input type="text" name="Name" value=""/></p>
<p>Your Email<br /><input type="text" name="Email" value="" /></p>
<p>Comments and/or Questions<br /><textarea name="Comments" rows="5" cols="40"></textarea></p>
<p>
<input type="submit" name="submit" value="Submit" />
<input type="reset" name="Reset" value="Clear Form" />
<input type="hidden" name="config" value="0" />
<input type="hidden" name="nospam" value="" />
</p>
</form>



but where does the clients comments will be sent ?
thnx !

mattle
10-27-2009, 05:30 PM
For entertainment purposes only:

You can set the action attribute of the form tag to send email. It will open up the users' default mail client to send the message. Of course, most people don't have their mail clients set up since email is now something you do at a website. Oh, and you'll see a billion-fold increase in spam for putting your email address in plain-text HTML.

But for the record, you don't need to use a scripting language. You just really, really, really, really should :)

rigliz
10-27-2009, 05:42 PM
i'm more scared to face spammers

Vinayak_Sharma
10-27-2009, 06:27 PM
It's not that people will SPAM you, spammers will use "your form" to SPAM others, and soon your provider will ask you to leave.

Vinayak_Sharma
10-27-2009, 06:30 PM
BTW see if this can help you http://www.formfields.com/FORMgenArea/FORMgenLite/FORMgen3_0/index.php

mattle
10-28-2009, 08:11 AM
It's not that people will SPAM you, spammers will use "your form" to SPAM others, and soon your provider will ask you to leave.

Um...actually, if you put your email address in plain text on a web site, you're likely to see the biggest spam impact. It's not much different than a "mailto" link. It'll just get picked up by data miners.

rigliz
10-28-2009, 08:41 AM
It's not that people will SPAM you, spammers will use "your form" to SPAM others, and soon your provider will ask you to leave.


so, i think it'l be better to provide only my email & phone number, bye for spammers , :cool:

:D thnx for ur advices

rigliz
10-28-2009, 08:44 AM
Um...actually, if you put your email address in plain text on a web site, you're likely to see the biggest spam impact. It's not much different than a "mailto" link. It'll just get picked up by data miners.

oh my God !! i hate such spammers, so how will others know about my email to contact me later!
:confused:

Vinayak_Sharma
10-28-2009, 10:23 AM
rigliz have you checked this link http://www.formfields.com/FORMgenAre...n3_0/index.php it will create a form for you.

Also if you really need a form on your site that is secure too, you may like to post in the Software and Scripts Requests (http://www.webhostingtalk.com/forumdisplay.php?f=146) section of WHT, I think some will be ready to do that for few dollars.

Also there are some online email scrambler to scramble yoru email ID for you, they will provide a code to place in your HTML that will save you from SPAMMERS.

Energizer Bunny
10-28-2009, 11:28 AM
oh my God !! i hate such spammers, so how will others know about my email to contact me later!
:confused:

By using a contact form :)

methodical
10-28-2009, 01:30 PM
Since you don't seem like the programmer type, perhaps you should try this:

http://www.foxyform.com/

This tool will generate some HTML that you can just paste on your page. I checked and they don't pass the recipient email address as a parameter in the HTML block so (in theory) it should be safe from the attack that vinsar mentioned.

I hope this helps. :-)

Jeremy

Baris
10-30-2009, 03:25 PM
You can use the attached files.
The form has a captca field to prevent spam.
It also sends the sender Ip adress to reciever.

davidm23
10-31-2009, 05:29 PM
Try emailme form. It's very simple and easy to use.. Captcha is also provided...