That's easy to do!
This script will get the POST data from an HTML form and check if it is a vowel.
$vowels = array('a','e','i','o','u'); // Make variable "vowels" an array with all vowels in it
$_POST['string'] = $string;
if (strlen($string) != 1) { // String is not one character.
echo 'The "character" is not one character!";
} else if (in_array($string, $vowels)) { // Check if string is a vowel based on array
echo $string.' is a vowel!'; // Is a vowel
} else {
echo $string.' is not a vowel.'; // Is not a vowel
}
?>
NOTE: Sorry about horrible looking code, Wiki messed up my indenting.
Copyright © 2026 eLLeNow.com All Rights Reserved.