Securing Web Forms

This is a discussion on "Securing Web Forms" within the JavaScript Forum section. This forum, and the thread "Securing Web Forms are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 11th, 2007, 09:19
New Member
Join Date: Jan 2007
Location: Scotland
Age: 21
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Securing Web Forms

Hi everyone, this is my first post. I am a complete beginner at web design as I come from a networking background. This last week or two I have been asked to do some work on a website so I thought I'd give it a go. I have been asked to set up a secure web form that will send the contents of the form entered by the user to an email address selected from a drop down menu on the page. I managed to get the form working and sending email but when I added Captcha to the page it seemed to work i.e it checked if the user had enetered the correct number then it would go onto the thank you page but it would not send the email now. The emails were sending fine before I added the Captcha. I did some research into this and found out that because there was echos in my Captcha validation code it was preventing the email from sending. I have been pulling my hair out trying different methods this past week. I was wondering if anyone on here could give me some advice or maybe an alternative way to do this? If it is easier I can post my code.

Thanks in advance guys
Reply With Quote

  #2 (permalink)  
Old Jan 11th, 2007, 13:04
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Securing Web Forms

Oh dear, JavaScript is not where you want to be. It's the most unsecure method to send form contents. You need to look into server side programming like PHP (my preference) or ASP.
Reply With Quote
  #3 (permalink)  
Old Jan 11th, 2007, 20:06
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Securing Web Forms

Write JavaScript to carry out validation at the client end for quickness and convenience for the user but you absolutely MUST do it again at the server side if for no other reason than they might have JavaScript turned 'off'.

Validating at the client side will not effect data in your form fields. However, once you send the data server side for validation and processing, if you return the user to the same page on failed validation, the fields will be empty unless you take steps to create 'sticky data'.

You do this by making the value attribute of a field equal to some php variable (usuming php is your server side scripting language) that has been used in the validation/processing script.
Reply With Quote
Reply

Tags
captcha

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
Securing test enviroment Spartan0510 PHP Forum 6 Nov 15th, 2007 15:51
JS and Forms roki13 JavaScript Forum 1 Jun 6th, 2007 15:28
securing email scripts from spam maniac Classic ASP 1 Nov 16th, 2006 12:08
forms mickc90 PHP Forum 3 Aug 1st, 2006 22:06
idea for "securing" Robs FormFunction jakyra Classic ASP 9 Sep 9th, 2003 16:56


All times are GMT. The time now is 22:16.


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