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

2 Server validations on page

Thread began 9/22/2010 12:15 am by Cologne | Last modified 9/23/2010 4:37 pm by Jason Byrnes | 785 views | 5 replies |

Cologne

2 Server validations on page

Hello,

I got a big problem. I copy and paste my standard server validation on every page (before page loads).

I saw that it got a special number and the name of the page.

for example WAVT_profileimage_837_Errors


Later I created a server validation for the form on the page.

A new name and a new number was created. but in the "show if" the first name and nuber was used, so the show if doesnt work.

how can I fix that without doining everything new?

Denis

<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php
if ("" == "") {
$WAFV_Redirect = "index.php";
$_SESSION['WAVT_server_345_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateUR($_GET['url'] . "","false",true,1);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"server_345");
}
}
?>
<?php
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos($_SERVER["HTTP_REFERER"], $_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"]) > 0) && isset($_POST)) {
$WAFV_Redirect = "server.php";
$_SESSION['WAVT_server_102_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ($_POST['test'] . "",true,2);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"server_102");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>
</head>

<body>
<?php
if (ValidatedField('server_345','server_345')) {
if ((strpos((",".ValidatedField("server_345","server_345").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
dfgsdfg
<?php //WAFV_Conditional server.php server_345(2:)
}
}
}?></body>
</html>
Sign in to reply to this post

Jason ByrnesWebAssist

edit the initial server validation in the server behaviors panel instead of adding a new one.

Sign in to reply to this post

Cologne

but i need two diffrent trigger...on before page load and one on press button.

Sign in to reply to this post

Jason ByrnesWebAssist

I am logging this as a bug, in the mean time, apply your form validation and validation entries before copying in the validation for before page load.

Sign in to reply to this post

Cologne

hi, jason, i dont understand that? Will i have both triggers?

Sign in to reply to this post

Jason ByrnesWebAssist

i'm just sugesting you reverse you process.


you said you copied your standard validation code to the page, then applied a second server validation.


apply the server validation. Add the validated entries code, after the page is complete, copy in the standard validation.

This way the standard validation os not conflicting while you create the page.

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