I know the subject doesn't do justice to what I'm about to ask, so I'll try to make it simple and to the point.
I have a series of 3 pages, all a portion of an add interface to an oracle table.
The first page requires the user to enter in specific data, the second checks the database based on the criteria entered by the user and either: a. inserts the new record into the database, or b. redirects a user to an error page alerting them to the problem of a duplicate entry.
My problem is that the error page that loads does not retain the values from the first entry page. Is there a way to do so? I've toyed with the @HTTP_VARS on both the error page, and on the checking page... to no avail..
Just so you guys have an idea of the snippet that does this...
while (ocifetch($sql_statement)) {
ociresult($sql_statement,"COLUMN");
}
$count = OCIRowCount($sql_statement);
if ($count >= 1) {
header("Location: http://somesite/error_page.php");
} else {
continue on with the insert and successful notation.....