close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Jquery Validation Phone problem

Thread began 11/15/2019 2:17 pm by p_vouers282571 | Last modified 11/15/2019 6:35 pm by Ray Borduin | 15 views | 1 replies |

p_vouers282571

Jquery Validation Phone problem

I am sure it is me BUT here is the code.

<?php require_once("webassist/email/WA_Email.php"); ?>
<?php
if (($_SERVER["REQUEST_METHOD"] === "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) { //WA Universal Email
$Email = new WA_Email("memail");
$Email->Redirect = "thanks.php";
$Email->From = "check@thefeedstoressl.com";
$Email->Host = "thefeedstoressl.com";
$Email->Port = "465";
$Email->addTo("".((isset($_POST["email"]))?$_POST["email"]:"") ."");
$Email->BodyFile = "webassist/email/templates/WebAssist-Block/Block_4.php";
if (function_exists("rel2abs") && $Email->Redirect) $Email->Redirect = $Email->Redirect?rel2abs($Email->Redirect,dirname(__FILE__)):"";
for ($emailGroup=0; $emailGroup<sizeof($Email->To); $emailGroup++) {
$Email->Subject = "testmail";
$Email->send($emailGroup);
}
$Email->close();
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link rel="stylesheet" href="webassist/jq_validation/Bloom.css" />
</head>

<body>
<p>try and get jquery to work</p>
<p>&nbsp;</p>
<form action="" method="post" name="form1" id="form1">
<p>full name
<input type="text" name="fname" id="fname">
</p>
<p>phone:
<input type="text" name="phone" id="phone" pattern="\(\d{3}\) \d{3}[\-]\d{4}">
</p>
<p>email:
<input type="email" name="email" id="email" pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}">
</p>
<p>
<input type="submit" name="send" id="send" value="send">
</p>
<p>&nbsp;</p>
</form>
<p>&nbsp;</p>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<script src="webassist/jq_validation/jquery.h5validate.js"></script>
<script>
var form1_Opts = {
focusout: true,
focusin: false,
change: false,
keyup: false,
popupClass: "Bloom",
pointedAt: "left",
fieldOffset: 10,
fieldMargin: 2,
position: "left",
direction: "left",
border: 1,
offset: 25,
closeText: "✖",
percentWidth: 100,
orientation: "bottom"
};
function form1_Validate() {
$("#form1").h5Validate(form1_Opts);
}
$(document).ready(function () {
form1_Validate()
ConvertServerErrors(form1_Opts);
});
</script>
</body>
</html>

A live link would be:
https://thefeedstoressl.com/memail.php

Sign in to reply to this post

Ray BorduinWebAssist

What is the issue exactly? What are you entering? It looks like you are validating a strict format for phone number. When I enter it as: (313) 333-2333 then it passes.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...