- Title: New member
- Status: Offline
- Registered: 2008-05-22
- Posts: 4
Topic: New profile menu, editing profile redirect issue
i added a new menu into the profile, all if is loaded from its own php file, but when i edit the options from this menu in other ppls profiles and save it it will redirect it self back to my profile
redirect code
redirect('profile.php?section=misc&id='.$id, 'Misc Updated');
and the $id
$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
this id is the same from profile.php, thought that might fix it
ive had this issue for some time and i cant seem to fix it, any help id be very appreciative
- Title: Senior Member
- Status: Offline
- From: South Yorkshire, England
- Registered: 2007-03-15
- Posts: 1576
Re: New profile menu, editing profile redirect issue
Do you require/include your file from profile.php? If so, try putting this into your file instead of the $_GET version:
$id = isset($id) ? intval($id) : 0;
If that makes no difference, you're going to have to post up the part of your profile.php where you reference the file, and likely the file itself so we can get an idea of how you're doing things. 
Last edited by MattF (2008-07-04 19:18:25)
Posts [ 2 ]
Guest posting is disabled. You must login or register to post a reply.