Losing 'page' data
Posted on
16th Feb 2014 07:03 pm by
admin
I have this code that allows me to update my database. But after updating, I lose the $_GET['page'] value in the browser. I need this value because it is passed when I go to other pages on the site.
Code: echo ($_GET['change'] == 'Garage_Type') ?
'<form method="get" action="' . $_SERVER['PHP_SELF'] .
'">
<select name="Garage_Type">
<option value="Attached">Garage </option>
<option value="Detached">Detached Garage </option>
<option value="Attached Carport">Carport </option>
<option value="Detached Carport">Detached Carport </option>
<option value="None">None </option>
</select>
<input type="submit" name="submit" value="Update DB!" /><input type="hidden" name="id" value="' . $this->_ID . '" /><input type="hidden" name="col" value="Garage_Type" /></form>' . '</td></tr></table></td></tr><tr><td colspan="3" bgcolor="#CCCCCC"></td></tr><tr><td>':
$this->_DATA['Garage_Type'] . '</td></tr></table> </td><td><a href="' . $_SERVER['PHP_SELF'] . '?change=Garage_Type&id=' .$this->_ID .'&page='.$_GET['page'].'&orderid='.$_GET['orderid'].'&asc='.$_GET['asc'].'">Edit</a>' .
'</td></tr><tr><td colspan="3" bgcolor="#CCCCCC">';
No comments posted yet
Your Answer:
Login to answer
138
39
Other forums
Class not found error
I am getting Class 'index' not found in Eval function:
//write config
$pat
Significance of BPM
Hi Experts,
I am a novice in BPM , I just want to know how BPM as permenant department is
error checking breaking my code
Hi there, OK first of all, big apologies for what I assume is really fundamental errors in the struc
include problem
I have my root folder as:
Code: $root = $_SERVER["SITE_HTMLROOT"]; // the server root<
PHP Tab Control
Hi All,
I would like to have PHP tab control with/without Javascript.
But I want to r
how do I show what a user have selected from a checkbox?
From my code below, how would i show which check boxes have been checked and which radio buttons sel
Problem with Subscreen
Dear Experts ,
I am facing a problem with the subscreens. My senario is as follows :
Mail Script Problems
I have created a PHP mail script. I am having a problem though. In $body i am trying to put two va
extending tidy
I have problem with type-hinting and extending tidy. This code creates error:
Code: class cMyTidy
reorder sql query
ok so i have this very simple code:
Code: $query = "SELECT search_keywords, COUNT(search_key