Forum Moderators: coopster

Message Too Old, No Replies

Forms Question

         

eradio

4:20 pm on Jul 30, 2007 (gmt 0)

10+ Year Member



I need to create a form that is bascially a multiple choice test that will process the selected values and then return the proper page once data is submitted. I am not sure if this should be done with PHP or Javascript.
Once that decision is made I need to know where to look for this info..I have seen some basic form processing tutorials, but none that deal with values in the way I need them.
Any help would be greatly appreciated.
Regards,

eelixduppy

4:30 pm on Jul 30, 2007 (gmt 0)



php.net has some quick info on dealing with forms [us.php.net] that you may want to take a look at.

>>but none that deal with values in the way I need them

What way do you need them?

oh, and welcome to WebmasterWorld! :)

WesleyC

4:30 pm on Jul 30, 2007 (gmt 0)

10+ Year Member



The thing to worry about if you use Javascript is that A. some people have Javascript disabled, and B. one malicious, knowledgeable user with half an hour to burn can make swiss cheese out of any Javascript security implementation in existence.

You can use Javascript validation, of course--in fact, I'd recommend it, so average users aren't annoyed by submitting the form and having to wait for the page to refresh, then finding out they missed a checkbox on one of the questions. But when the data reaches the server, you MUST validate it there.

So, in short--it's not an either/or question; you can use both, but whatever you do make sure that the final processing and checking is done on the server by PHP, not Javascript.