Hello,
Since I'm starting with PHP, I just can't figure out why this sequence does not work. It brings me a clean page with nothing in it.
I ran the script with echo on the "POST[uid']" and "POST['edupdel']" and both are received from the calling script.
All scripts
What is wrong with this code??? (or witth mePHP Code:<?php
ob_start();
session_start();
if (isset($_POST['uid']))
{
$uid = $_POST['uid'];
}
else
{
die("UID NOT FOUND");
}
if (!isset($_POST['edupdel']))
{
die("Edupdel not found");
}
else
{
$opt = $_POST['edupdel'];
}
if ($opt == "listone")
{
header('Location:selectone_user.php?uid=$uid');
exit;
}
if ($opt == "noselect")
{
header("Location:invalid_option.php");
exit;
}
if ($opt == "update")
{
header("Location:update_user.php");
exit;
}
if ($opt == "listall")
{
header("Location:listall_user.php");
exit;
}
if ($opt == "delete")
{
header("Location:delete_user.php");
exit;
}
if ($opt == "add")
{
header("Location:add_user.php");
exit;
}
ob_end_flush();
?>)
Thank You


)
Reply With Quote

Bookmarks