# Checking for alphapbert in php

**URL:** <https://forum.kirupa.com/t/checking-for-alphapbert-in-php/235057>\
**Category:** Uncategorized\
**Created:** [August 8, 2007, 1:50am UTC](https://forum.kirupa.com/t/checking-for-alphapbert-in-php/235057 "2007-08-08T01:50:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rocky86](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rocky86](https://forum.kirupa.com/u/rocky86)\
**Post date:** [August 8, 2007, 1:50am UTC](https://forum.kirupa.com/t/checking-for-alphapbert-in-php/235057/1 "2007-08-08T01:50:46Z")

</div>

Is my code correct to check if the user input from actionscript is a alphapbert? and return a error message to actionscript

```php

$postalno=substr($_GET["postal"],0,2);
if(ctype_alpha($postalno)){
$report.="error"."="."Error text enter number"."&";
echo $report;

```
