How do I check whether a forum is filled out before submission. Should I use javascript or should I make it server based so that users without javascript still have to fill it out, or is there another way to do this.
Checking whether a forum is filled out?
By "forum" you mean "form", right?
I must state a rule here: ALWAYS do your validation on the server side. Javascript can be easily bypassed (just have the firebug extension installed on mozilla, and it's easy). So, do your validation on the server side. Always.
Also your second point is good too. Users without javascript (users on lynx, for example) also can fill your form.
Just my opinions
I must state a rule here: ALWAYS do your validation on the server side. Javascript can be easily bypassed (just have the firebug extension installed on mozilla, and it's easy). So, do your validation on the server side. Always.
Also your second point is good too. Users without javascript (users on lynx, for example) also can fill your form.
Just my opinions
| mariohs wrote: |
| By "forum" you mean "form", right?
I must state a rule here: ALWAYS do your validation on the server side. Javascript can be easily bypassed (just have the firebug extension installed on mozilla, and it's easy). So, do your validation on the server side. Always. Also your second point is good too. Users without javascript (users on lynx, for example) also can fill your form. Just my opinions |
i think server side is the best however, if you use javascript also as well as somthing like php its even better and in the case were javascript isinabled can releve someof theover head on the server
