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'])){

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

Map.php
I am a complete beginner to PHP and am looking for some help with a program I am messing around with

defining website tags
Hi,

What would be the best way to define tags for my site, such as website title, url etc.

reading xml faster than DB call?
I am trying to optimize a high traffic website, and I enabled a feature where there are three photos

Cron Job and Output
I have php codes running under a cron job.
But everytime i output (echo) , it comes out as comple

unserialize help, getting errors
hi all ,
I got a form with 6 fields (2 input and 4 select box), when the page loads one block is

Executing an exe
Hi. I have some bizarre problem with exec (other any other method) to launch exe's. I am making a ga

Change Age automatically
hi guys . im new to php , is it possible to change age value in mysql automatically when year change

writing my own sobel filter convolution - something is wrong
I am trying to keep it very simple, I cant see anything wrong with my logic, could anybody help poin

Why do I get this error
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/a5488351/public_html/b

onclick problem
I have <input type="text" name="message">
<a href=page2.

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