Hello All, I am inserting data in a table, its working fine, there is primary key "m_id". after inserting data i m using redirect to go a another page, what i want, when i am redirecting, i want url should be look like this (see below)..but its not working...as I m not able to get "m_id" (A column with primary key) value to pass it with url as i have shown.. echo'<script> location = "upload_photos.php?m_id='.$_REQUEST['m_id'].'"; </script>'; Thanks, Avi