Protect the script.

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


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 5th, 2005, 21:44
New Member
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Protect the script.

Let's see if I've got this straight......

OK...I've created a form using Dreamweaver...(typical delivery/billing form).
Now I hear that if I use Javascript to validate a form on a dynamic site, server side, a user could alter the Javascript and therefore alter the form. How can I avoid this?

~V~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 5th, 2005, 23:17
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Protect the script.

Quote:
Originally Posted by Voxart
Let's see if I've got this straight......

OK...I've created a form using Dreamweaver...(typical delivery/billing form).
Now I hear that if I use Javascript to validate a form on a dynamic site, server side, a user could alter the Javascript and therefore alter the form. How can I avoid this?

~V~
edit the javascript...i think you may be lost here.
Using javascript for validating forms is good, however it can be turned off, meaning bad information can be passed into the prossesing....i think thats what you meant.

you should use server side validation aswell (for example in asp ..... if request.form("name") = "" then etc etc )
what language are you using to prosess the form,we can help you out better then.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 6th, 2005, 10:24
New Member
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Protect the script.

Thanks for the advice. I'm still unclear on some aspects of
server-side script/Javascript.

> Using javascript for validating forms is good, however it can be turned off..

If Javascript can be turned off I don't understand the point of using it.
You're right I'm a bit lost. (got no formal teaching, just picking up knowledge off the web and "Sams" self-teach books).
Does this mean that a shopping cart, for instance, should only validate using PHP or asp or Perl etc. server side?
I plan to process the form using PHP.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 6th, 2005, 13:38
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Protect the script.

Quote:
Originally Posted by Voxart
If Javascript can be turned off I don't understand the point of using it.
A good point - it can be turned off for security reasons. with javascript being client side you should not rely on just javascript to validate your forms. PHP (as you said you were using it) should be the basic way of validation, javascript would be a nice plus side. When using javascript for elements such as those, you allways need somthing to fall back on.

:wink: hope tht helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
protect, script

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
How can I best protect my images? Craigj1303 Webforumz Cafe 14 Apr 28th, 2007 05:14
Protect web content webdevelopa Scripts and Online Services 4 Feb 24th, 2007 20:18
Looking for EASY password protect script Lchad PHP Forum 3 Jan 28th, 2007 00:54
Protect your email address Ryan Fait JavaScript Forum 3 Jan 7th, 2007 05:15
Protect Pages Aaron1988 PHP Forum 4 Oct 26th, 2006 18:45


All times are GMT. The time now is 23:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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