Take the 2-minute tour ×  I have a problem using a "header
location", below is the code:  case 'update':
header('Location:
../ticket/listOfTicket.php?ticket_id='.$_GET['ticket_id'].'');
I'm using case because want to I update into a database. The
problem here I believe is:   I don't know where to put the quote
' and ". It will outputted in the URL like this:   It didn't
display the ticket_id. Why?  share|improve this question also
you have to check if exist and if it is numeric that $_GET value
if (isset($_GET['ticket_id']) && is_numeric($_GET['ticket_id']))
–  tttony Sep 13 '11 at 4:04 add comment  1 Answer  You should
always sanitize your user input. I could easily pass something
you're not expecting to $_GET['ticket_id']. Assuming ticket_id
is an integer, this works for me when I access the page and set
ticket_id to some value.  header( 'Location:
../ticket/listOfTicket.php?ticket_id=' . intval(
$_GET['ticket_id'])); share|improve this answer done..nice..
thank you so much.. :) –  apisz Sep 13 '11