Forum Moderators: open

Message Too Old, No Replies

Best way to build a disclaimer page

         

ruxique

3:39 pm on Feb 3, 2004 (gmt 0)

10+ Year Member



I have to build a disclaimer page, on wich the user can click if agrees to the terms or not, and if he clicks "I Agree", to be tacken on the page he requested.

Waht would be the best way to do that?

Thanks

Ruxique

Strange

8:00 pm on Feb 3, 2004 (gmt 0)

10+ Year Member



You should be able to do that check with a JavaScript.

tonyriley

8:02 pm on Feb 3, 2004 (gmt 0)

10+ Year Member



Im not to much of a php expert, but you could have an 'I agree' check box, which is a variable, set to true if ticked. Then when clicking enter, if the variable is equal to 'true' then it proceeds to the site, otherwise you get directed to a page explaining the terms and the fact that you need to accept ...

mep00

4:34 am on Feb 4, 2004 (gmt 0)

10+ Year Member



The best way to go is to use both client and server side scripting. Even if it seems that client side is a more logical approach, never rely on client side verification of any data; it's very easy to bypass, if it works at all (which it may not).

As a rule of thumb: client site scripting is for the client's benifit, server side is for yours.

dnimrodx

6:36 am on Feb 5, 2004 (gmt 0)

10+ Year Member



The best way to go is to use both client and server side scripting. Even if it seems that client side is a more logical approach, never rely on client side verification of any data; it's very easy to bypass, if it works at all (which it may not).
As a rule of thumb: client site scripting is for the client's benifit, server side is for yours.

I quite like the way you said this, :) but let me ask you, would you not agree that performing some minor validations on the client side wouldn't be that bad? (ie. form validations with no sensible data whatsoever... etc)

d#Nimrod

adamas

9:52 am on Feb 5, 2004 (gmt 0)

10+ Year Member



Doing minor validation on the client side can be useful for responsiveness i.e. the user doesn't have to submit the form and wait for a reponse from the server in order to know something needs correcting. That is still a benefit for the user though.

If it is important for the data being submitted to conform to the validation though you should still recheck it on the server side. The user may have js turned off, or may be submitting the data in a different way from your form to try and crack your script.

dnimrodx

10:09 am on Feb 5, 2004 (gmt 0)

10+ Year Member



adamas, can you do me a favour and reply to the separate post I created?
It is located H E R E [webmasterworld.com].

The topic is almost the same, but not quite...

Thanks :)