Oh, so you really do need to parse the page it gets. Interesting.
You could do this serverside with PHP, but it wouldn't be so much easier than JS.
PHP Code:
<?php
ob_start();
include('http://....myurl.com/dir/?info=stuff');
$return = ob_get_contents();
ob_end_clean();
if (strpos($return,'My_Word_or_Phrase')!==FALSE) {
die($return);
}
header('Location: http://my.com/error/page.htm');
Since it nicely highlights the code, all you need to do is replace the parts in red.
To make a really smooth system, that may need some tweaking. Rather than outputting the text, it might be a better idea to redirect to that page, as outputting it directly will cause local paths to act strangely.
Also, getting the URL in the first place may be challenging. You can use the variables sent from the form to set the search, such as $_GET['fieldname'], $_POST['fieldname'] based on the method="" attribute of the form.
Bookmarks