Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
what script for e mail form
Old 10-23-2008, 08:19 AM what script for e mail form
pathfinder_05's Avatar
Experienced Talker

Posts: 38
Name: DB
Trades: 0
Hi guys,

As a newbie I'm quite proud to say I can sort out most things by using Google, but there are so many options when it comes to sending a form from my new website to my e mail address!

There are JS scripts, php, cgi things.....

Which one is the simplest but safest option and do you know the best place to find a ready made script?

Many thanks.

DB
pathfinder_05 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-23-2008, 07:58 PM Re: what script for e mail form
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I use php to to email form results. Any server side language should do, though. The simplicity and security will really depend more on your form and how you write the code than which language you choose. You could write a simple and secure mail script in any language and you can equally write a complex and insecure mail script in that same language.

However, cgi tends to be more complicated than it needs to be in my opinion and javascript (on the client) is less secure since your code is visible to anyone who wants to see and can also be manipulated by anyone who wants to see. You never want to trust input from JavaScript. You'd still want to validate it on the server side.

Pick a server side language like php or asp and look for a tutorial. A mail script is pretty simple in either and probably one of the first things most people learn when starting to use a server side language.

Here's a page from the php.net site on using the mail() function. If you scroll down the page there are plenty of examples on using it.

The one thing I didn't see on that page is the connection to the form. When you see something like $title=$_POST['title']; the $_POST['title'] is passed from the form and it would be the field with an id="title"

Hopefully that makes sense. If not feel free to ask questions. There are a lot of tutorials online too that will walk you through the whole form and script.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by vangogh; 10-23-2008 at 07:59 PM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 10-24-2008, 07:37 AM Re: what script for e mail form
pathfinder_05's Avatar
Experienced Talker

Posts: 38
Name: DB
Trades: 0
Thanks mate for that lengthy reply.

Now I can use the best web developing tools there are..... a Google search, copy and paste, also that pea sized thing between my ears.

Take care

DB
pathfinder_05 is offline
Reply With Quote
View Public Profile
 
Old 10-24-2008, 05:41 PM Re: what script for e mail form
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Glad to help. Feel free to ask more questions if they arise while putting the mail form together.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to what script for e mail form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36461 seconds with 12 queries