This topic is locked

INLINE - getting error

5/28/2008 7:38:23 AM
PHPRunner General questions
L
Lisa2006 author

Hi Forum,
I've placed the following code snippet in my Add Page | Before record added Event.
if ($inline)

{

if ($values["plannerstart_town"]==$values["plannerend_town"]){

$plannerstarttown = 'true';

}else{

$plannerstarttown = 'false';

}

}
if ($inline)

{

if ($values["plannerstart_city"]==$values["plannerend_city"]){

$plannerstartcity = 'true';

}else{

$plannerstartcity = 'false';

}

}
if ($plannerstarttown == 'true') {

echo "<script>alert('Cannot be same town ...');</script>";

return false;

}elseif ($plannerstartcity == 'true') {

echo "<script>alert('Cannot be same city ...');</script>";

return false;

} else {

return true;

}
Here's the problem:

[/u][/b]When i execute the project and enter "london" for fields, then the logic displays a dialog box saying "Cannot be same town ..." - this is working fine.
However after clicking ok on the dialog box, an error hyperlink message (Error occurred >>) is displayed on the screen. On hovering on the hyperlink an empty red box is displayed.
I would simply like to remove this error hyperlink message when both [color="#000080"]$plannerstarttown fields match. Think this will confuse the end user.
Your help and support would be much appreciated.
Lisa[/color]

J
Jane 5/29/2008

Hi,
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.