FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Checking whether a forum is filled out?

 


Dougie1
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.
mariohs
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 Wink
Dougie1
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 Wink
Thanks. And yes I ment form! lol. I know how to do it server side, so thanks.
starfish2007
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
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.