Posted 04 February 2013 - 12:33 PM
Edited by markvs, 04 February 2013 - 12:40 PM.
Posted 04 February 2013 - 12:57 PM
Posted 04 February 2013 - 02:45 PM
Posted 05 February 2013 - 02:37 AM
on the other hand PHP is used for communicating with the databases like MYsql,etc and retriving the data also.
HTML+CSS -----> Designing purpose
PHP/SOAP ------->Communicating with databases , for public and custom webservices.
Mysql--------------->open source DB.
Posted 05 February 2013 - 11:55 AM
Here at work we use Java and/or Classic ASP. In the Classic ASP apps I have been updating or maintaining we do use JS, but only as a mask, ensuring that the data fits the format requirements. So you can use JS to format a telephone number as you wish on the fly. Most folks (US) tend to write (555) 555-1234, but not all, so a JS mask can take any numbers and format it as the database needs it. Masking not only makes it easier for the user, but it can format the data or require data (not allow you to finish without an area code for instance.)
The simple answer from me is PHP to flat out answer the question.
That said, using the JS mask allows you to format the data as reqyuired for the database so all the PHP needs to do is validate rather than...
IF telNr. is (XXX)XXX-XXXX add a space between ) & X
IF telNr. is XXX XXX-XXXX add () around the first 3 didgits.
etc. etc. etc.
JS frees the PHP to do pure validation. So best is PHP and maybe do formatting requirements etc. with JS additionally.
Thank You, Migwetth, Gunalche’esh, Ha’w'aa, Danke
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users