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.
|
|
|
|
|
![]() |
||
Protect the script.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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~ |
|
|
|
#2
|
|||
|
|||
|
Re: Protect the script.
Quote:
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Re: Protect the script.
Quote:
:wink: hope tht helps |
![]() |
| Tags |
| protect, script |
| Thread Tools | |
|
|
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 |