This is urgent — my client’s form is not working live. I am no coder, but someone who is unavailable at the moment wrote the script below. When the correct phone number format is entered, it still returns, “Please enter a valid phone number”. My search cannot find a specific solution because I am not smart enough with the js. Can you see the problem and suggest how I can quickly fix it?
[B]Validation Script
// function to check US phone – format 999-999-9999
function IsPhone(snum)
{
var rePhone = /^(d{3})(-)(d{3})(-)(d{4})$/
return rePhone.test(snum)
}
[B]Inline script in php page:
<input style=”font-family: Arial,Helvetica,sans-serif; font-size: 11px;” maxlength=”80″ id=”phone” size=”23″ name=”phone” value=”Day Time Phone Number” onFocus=”this.value=”;return false;” type=”text”>
[B]Reference URL: http:freemovefreemoney.com
Index page form, right side of window