yes u r rigth... i have an index.php which is a form and is posting the vars to post.php which is the following!
<?php
ob_start(); error_reporting(E_ALL); $i=0;
echo "<body background=pics/anemos.bmp>";
$onoma = $POST['onoma'];
$eponymo = $POST['eponymo'];
$til = $POST['til'];
$email = $POST['email'];
$user = $SERVER['PHP_AUTH_USER'];
$pass = $SERVER['PHP_AUTH_PW'];
if (@mysql_connect('localhost', 'nik', 'macgyver'));
else @mysql_connect('localhost', 'root');
mysql_select_db('db_nik');
$sql=mysql_query("SELECT * FROM member");
while ($row = mysql_fetch_array($sql))
if (($SERVER['PHP_AUTH_USER']==$row['user']) && ($SERVER['PHP_AUTH_PW']==$row['pass']))
$i=1;
else
$i=0;
if ($i==0)
{
header('WWW-Authenticate: Basic realm="Ðïéüò åßóáé?"');
die ("<font size=5 color=Grey> Äåí åßóáé ìÝëïò ôçò ÁôæÝíôáò...ðñÝðåé ðñþôá íá ãñáöôåßò êáé ìåôÜ íá îáíÜñèåéò!!");
}
else
{
if (isset($POST['kataxorisi'])) header("Location: kataxorisi.php?onoma=$onoma&eponymo=$eponymo&til=$til&email=$email");
if (isset($POST['emfanisi'])) header("Location: emfanisi.php?onoma=$onoma&eponymo=$eponymo&til=$til&email=$email");
if (isset($POST['metavoli'])) header("Location: metavoli.php?onoma=$onoma&eponymo=$eponymo&til=$til&email=$email");
if (isset($POST['diagrafi'])) header("Location: diagrafi.php?onoma=$onoma&eponymo=$eponymo&til=$til&email=$email");
}
?>
The problem is that post.php doesnt post those variables that came from index.php to the other scripts!! 🙂