I successfully added phone_number to my web form.
Then included this on the index.cgi
$sql{phone_number } = $in{phone_number} || $in{phone_number } || '';
However, I can't get the phone number to write into the database correctly. I have minimal programming skills and tried a variety of different things (see below).
for ($sql{phone_number}) {
s/[^\d.-]//g; # only digits and dots and dashes
}
The above yields the same number no matter what is input. Any input? Thanks...