Accept only alpha characters


Posted on 16th Feb 2014 07:03 pm by admin

I've got this bit of code ready for accepting a phrase:

Code: if (!eregi ("", $_POST['phrase'])){

Did you know?Explore Trending and Topic pages for more stories like this.
but I need it to accept ONLY alphabet characters. No numbers, no spaces, no under scores, no special characters. Anyone care to fill in the blank?
No comments posted yet

Your Answer:

Login to answer
287 Like 11 Dislike
Previous forums Next forums
Other forums

Customizing message/behavior
Hi,I'm using the ASP.NET membership/authorization controls in my application. Some parts of my appli

Force download script not handling files with spaces properly
I have a regular old php force download script, uses this code:

Code: header("Cache-Cont

Members Only
Hi all, for my website i have a members area only which on members can veiw, but at the moment anyon

Is STL important?
I'm just starting programming and I've made it until the Standart Template Library. But the chapter

php title problem
Hi,

I am having a problem managing my page title with PHP.

Currently I have my <

Need help with PHP/MySQL drop down menu
I need help on how I can implement a drop down menu which queries mysql database and output the avai

mr8m - reverse document
Friends,

I'm trying to reverse a document held by MIRO, but it reports the message balan

Using loop to count number of entries
I'm writing a program that must ask user to type in numbers. After each entry, the program has to re

writing a screen scraper
Hello,

I'm writing a screen scraper application and want to be able to get absolute addresses

if description does not contain the following words
Hello everyone,

I am parsing a MS Excel (.xls) file and adding it's content to a mySQL databa

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash