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

Find occurences of unicode characters in string
I need to prohibit filenames with everything but English characters and numbers but regexp and strin

Convert .fdf to .pdf
I currently have a web form that uploads the form data to an .fdf file and emails it.

However

Page Reload
I am having issues getting a page to reload after I submit data to a database. This form should inp

Database connection failure
Hello All,

I am trying to create new connection to Oracle DB 10.1,
I could not see a

Target costs on Process orders not calculating
Hi All,

We have released standard costs for all the materials. We have also done Goods r

Compare user input to flat file data
Help...Am a complete newbie to programming so my code is prolly quite long. Am trying to verify a us

Get Total From While Loop
I'm trying to get the total for each product and add them for a Grand Total to list outside the loop

ok i need to join all this pages to make 1 neat code
i have 5 pages that make up my tv guide it works 100% but i want to make it 1 page if i can or 2, i

Java API in PHP?
I have an application that we use internally here at the office.

The software company provide

Adding delete feature to my forum
Hello I am currently trying to add a delete feature to my forum. I believe I have everything built r

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