echo -ne "The E-mail you input is wrong!\nPlease input again: "
read mail
checkmail
fi
}
function checkphone ()
{
if [ -z "$phone" ]; then phone=0; fi
if [ -z "$mobile" ]; then mobile=0; fi
phone_check=`echo $phone | tr ':;",.+<>?/~\!=@#$%^&*[a-zA-Z]{}|' ' ' `
mobile_check=`echo $mobile | tr ':;",.+<>?/~\!=@#$%^&*[a-zA-Z]{}|' ' ' `
if [ "$phone_check" != "$phone" ]
then
echo -ne "The Phone Number you input is incorrect!\nPlease input again: "
read phone
checkphone
elif [ "$mobile_check" != "$mobile" ]
then
echo -ne "The Mobile Phone Number you input is incorrect!\nPlease input again: "
read mobile
checkphone
fi
}
function redo ()
{
select pick in "Name" "E-mail" "Address" "Phone Number" "Moblie Phone Number" "Other Messages" "Exit to the identify menu" "Exit to the main menu" "Quit without save"
do
case $pick in
Name )
echo Please input the name again:
read name
checkperson
redo
;;
E-mail )