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
Formatting echo from database
So I have a database that stores First and last names, then echos them back to a website, as of now
Not Loading Function Into Div
I'm not sure whether to put this under the php forum or ajax forum but because I tink it's more of a
IS Retail & Manufacturing
Hi
Can IS Retail and Manufacturing activities be done in same instance ie. in same client
PHP and Javascript
Hello Everyone,
I have a page that needs a javascript code to be written between PHP code but
SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built
multipart emiail forms
Hi All,
I am new to the boards and I've been working on a form (which is rather massive, imo
User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo
noob question
i traying to do a php form with auto replay for both(me and the user who send me a mail),
a u
Needing Youtube thumb nail fix.
I have a script on a site that pulls in you-tube videos,
The problem is, that the thumb nails for
server trace logs
could any one tell me from where do i get error logs in xMII??I want to check the reason for dtabase