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

2 (edited by MattF 2008-07-04 19:18)

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. smile