mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 00:53:22 -05:00
Fixes an annoying problem with PHP_SELF, corrected by using "".
This commit is contained in:
parent
1791320659
commit
b5be74863d
@ -64,6 +64,7 @@ if($_GET['trans_type']=='all_types'){
|
|||||||
//record_count
|
//record_count
|
||||||
if($_GET['record_count']>0){
|
if($_GET['record_count']>0){
|
||||||
$record_count = $_GET['record_count'];
|
$record_count = $_GET['record_count'];
|
||||||
|
$number_of_transactions = $record_count;
|
||||||
} else {
|
} else {
|
||||||
$record_count = $number_of_transactions;
|
$record_count = $number_of_transactions;
|
||||||
}
|
}
|
||||||
@ -90,9 +91,11 @@ $totalRows_Recordset1 = mysql_num_rows($Recordset1);
|
|||||||
//Action on form update
|
//Action on form update
|
||||||
|
|
||||||
if (isset($_GET[record_count])) {
|
if (isset($_GET[record_count])) {
|
||||||
$editFormAction = $_SERVER['PHP_SELF'];
|
//$editFormAction = $_SERVER['PHP_SELF'];
|
||||||
|
$editFormAction = "";
|
||||||
} else {
|
} else {
|
||||||
$editFormAction = $_SERVER['PHP_SELF'];
|
//$editFormAction = $_SERVER['PHP_SELF'];
|
||||||
|
$editFormAction = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
//$editFormAction = $_SERVER['PHP_SELF'];
|
//$editFormAction = $_SERVER['PHP_SELF'];
|
||||||
@ -146,6 +149,13 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormNew")) {
|
|||||||
} // end Form Submit New Transaction
|
} // end Form Submit New Transaction
|
||||||
|
|
||||||
|
|
||||||
|
// Form Close Record
|
||||||
|
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit") && ($_POST["EditSubmit"] == "Close")) {
|
||||||
|
|
||||||
|
header(sprintf("Location: %s",$editFormAction . "?record_count=$record_count")); //$editFormAction
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//Form Edit Record ===============================================================================
|
//Form Edit Record ===============================================================================
|
||||||
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit") && ($_POST["EditSubmit"] == "Save")) {
|
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit") && ($_POST["EditSubmit"] == "Save")) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user