Posted by larry on 04/10/07 03:22
Given your semicolons and quotes I would start by cleaning to:
<?php
echo "Hello this is a test file on my server Seen: $_POST[seen] </
br>";
if(!isset($_POST['seen']) )
{
echo "HERE...";
$_POST['seen'] = 'yes';
require $_SERVER['SCRIPT_FILENAME'];
} else {
echo "Not here...";
}
echo "At the end of script ";
?>
Normally I would load-in my POSTs through a filter before doing
anything with them
$seen = filterPost('seen');
Of course filterPost woud be something that strips bad data coming in
unexpectedly.
>From there I would be messing with $seen then the $_POST['seen']
element.
Also the echo before the isset() check may result in an error if
theere was no $_POST['seen'] data.
Larry
[Back to original message]
|