Reply to Re: help with PHP include problem

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация