Posts: 126
Name: Clayton Beaudin
Location: Proud to be Canadian
|
Im looking for the best way to do the following, i tried myself but its over my head  .
Users will enter a letter/number string into a form like the one below:
G11223344556677
I need a script to check that the first character is a letter, the rest of the characters are numbers and that the string is 15 characters long.
Furthermore, i need to seperate the last 6 numbers into variables in sets of two. the result should look like:
PHP Code:
$lastset==77; $middleser==66; $firstset==55;
I should be able to figure out the rest myself hopefully  . Thanks for all your help much appreciated.
|