Header (location ) problem
Posted: Tue Mar 16, 2010 3:25 pm
Greeting php technorati. I again face another perplexing issue. I cant get my code to redirect user to another page
. Here is the code:
It performs the addition to the database, but it just stays on a blank page?
Can some one show me the error of my thinking?
As always , thanks in advance,
Batoe
Code: Select all
<?php
if (isset($_POST['submitting']))
{
$bossID = $_POST['bossID'];
$candidateID = $_POST['candidateID'];
$FName = $_POST['FName'];
$LName = $_POST['LName'];
$category = $_POST['category'];
$years_exp = $_POST['years_exp'];
$degree = $_POST['degree'];
// Connect to server and select databse.
require 'open_db.php';
mysql_query("INSERT INTO my_saves (bossID, candidateID, FName, LName, category, years_exp, degree)
VALUES ('$bossID', '$candidateID', '$FName', '$LName', '$category', '$years_exp', '$degree') ") or die(mysql_error());
header("Location: my_saves.php");
}
?>
Can some one show me the error of my thinking?
As always , thanks in advance,
Batoe