close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Max Min dates not validating

Thread began 4/23/2011 1:42 pm by michael287412 | Last modified 4/25/2011 10:38 am by michael287412 | 1097 views | 1 replies

michael287412

Max Min dates not validating

Hi

I've installed a date picker and then trying to validate this to a period of +1 to +31 days following system date.

The date picker works ok and return a valid YYYY-mm-dd result.

Whe I validate the page keeps returning to same page suggetsing an error. If I remove the validation the page passes to the following page on submit.

The code WA has written into the page is:

if (isset($_POST["postp2"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_proposalsPostpone_198_Errors'] = "";

if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}

$WAFV_Errors = "";
$WAFV_Errors .= WAValidateDT(((isset($_POST["postp"]))?$_POST["postp"]:"") . "",true,".*","mktime(0, 0, 0, date(\"m\") , date(\"d\")+1, date(\"Y\"));","mktime(0, 0, 0, date(\"m\") , date(\"d\")+31, date(\"Y\"));",true,".*","","",true,2);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"proposalsPostpone_198");
}
}
?>

I'm using a php page, from a template, date picker inserted by removing the lock and reinstalling after inserting the date picker.

Dates are always a nightmare - but can you see what I've done wrong please.

Thanks

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...