About sending form-data to an email address

This is a discussion on "About sending form-data to an email address" within the Web Page Design section. This forum, and the thread "About sending form-data to an email address are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 27th, 2006, 00:25
Junior Member
Join Date: Jan 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Question About sending form-data to an email address

Why is sending form-data (via a typical html form) to an email address insecure, or less secure; and conversely, why is sending form-data online (to a database held on the host server) more secure?
Is this simply down to SSL, or is it more than this? Also, is it possible to send form-data to an email address securely?
Reply With Quote

  #2 (permalink)  
Old Mar 2nd, 2006, 02:50
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 381
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to craig
Re: About sending form-data to an email address

It does not matter where the form is going, be it a database or email.
What matters is the server the form is on, and how it is being sent.
If the form is on a SSL secure server it means that all the information which is sent via the form is encrytped so that if anyone intercepts it, it cannot be easily read. I say "easily" because there are many pro hackers that can easily decrypt a 128 bit encrytion.
If the form is uses the "mailto" function to send the details, it is highly insecure. You should always use something like the "post" function, and send it through a PHP script.
You have to remember that ABSOLUTELY NOTHING is completely secure on the internet, but there are some methods which are moer secure than others. Sending a form through a PHP script is often enough to send user details, however when processing things like creidt card details, ALWAYS use an SSL server.

Craig
Reply With Quote
  #3 (permalink)  
Old Mar 2nd, 2006, 11:25
Junior Member
Join Date: Jan 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Re: About sending form-data to an email address

Great - so providing that the server uses SSL, I could have form data sent to an email fairly securely. Many thanks for that.
If I use the 'post' submission method (I take it, this is as opposed to the 'get' methode) and send the form/form-data through a PHP script, should I have the PHP code/script embedded in the html page itself within PHP tags, or should the script be a standalone .php file?
In either case (sorry to ask all these questions), what do I put in the form's action-field?
Reply With Quote
  #4 (permalink)  
Old Mar 2nd, 2006, 15:28
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: About sending form-data to an email address

If your using post method php does encrypt data on transfer.

You can embed the php into the form itself and set the action to itsself.
For example if you have form.php which the user fills in you can put.
Code: Select all
form action="form.php"
Then above your form you can use
PHP: Select all

<?php 
if (isset($_POST['submit'])) {
//Do whatever with the form
?>
Providing you keep the submit buttons is
Code: Select all
name="submit"
Reply With Quote
  #5 (permalink)  
Old Mar 3rd, 2006, 12:17
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbramz
Re: About sending form-data to an email address

what information would you be sending?
Reply With Quote
Reply

Tags
sending, formdata, email, address

« Box Help | Testing »
Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Form Data to E-mail Address Fools Gold Starting Out 4 Dec 23rd, 2007 14:16
PHP email form not sending email Kurt PHP Forum 1 Oct 12th, 2007 04:26
Sending database record ID as a membership number t an email address frinkky PHP Forum 3 Nov 30th, 2006 02:45
When a form is sent as email, how do I get an address in the from heading? Barça PHP Forum 15 Jun 11th, 2006 22:00
Send form details to an email address...please help! newbie44 JavaScript Forum 4 Oct 2nd, 2005 08:45


All times are GMT. The time now is 02:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43