Mobile users are increasing. Most of the site visitors of a website is using mobiles to browse. So you need to redirect users who uses mobile to a mobile page of your site. In Javascript it is easy, because you can check the width and height of the window. But on server side, it can become difficult. You will find is_mobile() function in this post which detects if the client is in mobile or not.
... [READ MORE]Posts marked with "Mobile" in categories
Using Regex to validate E-mail and Phone Number
/^(([^<>()[].,;:s@"]+(.[^<>()[].,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/
/^(?([0-9]{3}))?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/
var emailregex=/^(([^<>()[].,;:s@"]+(.[^<>()[].,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/;var phoneregex=/^(?([0-9]{3}))?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;if (emailregex.test(string)){// valid email}else{// Invalid email}if (phoneregex.test(string)){// valid phone number}else{// Invalid phone number}
if (phoneregex.test($("#phone").val())){// valid phone number}else{// Invalid phone number}
... [READ MORE]