| | |
validation
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Have I got this right?
I have a massive form with about 150 text fields with about 10 min of which need to be filled in. If I add a .js file and my .css file to the server that checks the form fields as the user fills it in with correct validation this will overcome the client side of on/off javascript. The form will be using the .js file on the server to check the fields regardless of the client.
Take me about 3 days to make and code all this but i'm sure i'll get there.
I then have a .php file which will extract all the data and email it back to me. Thus the .php file will not need if & else statements as the .js will do it all in the process of filling it in.
Also I will set-up a protected folder which will store the .php, .css and .js files which will keep the files away from anybody trying to harrass me with injection.
Does this sound like the right way to do all this?
simple answers of yes or no and why will do me.
This is what I will call stage 1 of 2 but stage 2 will be next week at least
I have a massive form with about 150 text fields with about 10 min of which need to be filled in. If I add a .js file and my .css file to the server that checks the form fields as the user fills it in with correct validation this will overcome the client side of on/off javascript. The form will be using the .js file on the server to check the fields regardless of the client.
Take me about 3 days to make and code all this but i'm sure i'll get there.
I then have a .php file which will extract all the data and email it back to me. Thus the .php file will not need if & else statements as the .js will do it all in the process of filling it in.
Also I will set-up a protected folder which will store the .php, .css and .js files which will keep the files away from anybody trying to harrass me with injection.
Does this sound like the right way to do all this?
simple answers of yes or no and why will do me.
This is what I will call stage 1 of 2 but stage 2 will be next week at least
No absolutely not. You have such a huge form with so many text fields. From the user perspective imagine whether it is good to wait for the slow server to response for validation just for not filling a field.
That will be very frustrating!!
That will be very frustrating!!
Last edited by Luckychap; Dec 2nd, 2008 at 12:53 am.
When you think you have done a lot, then be ready for YOUR downfall.
![]() |
Similar Threads
- W3C Validation (HTML and CSS)
- .net validation/javascript conflict (ASP.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Merging 2 Arrays
- Next Thread: gridview search when keypress
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child close column createrange() css cursor date debugger dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scriptlets scroll search security select shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n





