I have two requests that I need advice and help on.
1. I am trying to code a textfield only input that only accept characters instead of integers and special characters.
I was thinking of using ereg shown here.
if (!ereg($letters, $Myname)) {
echo Letters only required';
}
Is there a better way of comparing characters using utf-8 or ASCII using one if statement rather than using separate if statements for integers and special characters.
2. I am trying to code a method that would update the date into a via button. So far I have coded this, however it is not working
Character Input Only
in PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition)
Posted
Hello
I have two requests that I need advice and help on.
1. I am trying to code a textfield only input that only accept characters instead of integers and special characters.
I was thinking of using ereg shown here.
Is there a better way of comparing characters using utf-8 or ASCII using one if statement rather than using separate if statements for integers and special characters.
2. I am trying to code a method that would update the date into a via button. So far I have coded this, however it is not working
Some advice is grateful
Thank you