haroon Posted February 3, 2007 Share Posted February 3, 2007 Hello All! i am new to php i have got a problem! i got a form with user profile edit link code : <a href='AEditProfile.php?users=$id'>Edit</a> where id stands for the id from database ive got and a variable 'su' on same page code: <? if($su==1) echo "<span class='error'>Profile Updated</span>"; ?> <a href='AEditProfile.php?users=$id'>Edit</a> this links take u to edit form where u can edit profile info with a button for update. which takes value to update profile.php. all works good till here but when i give this header in update profile.php header('location:Aeditprofile.php?su=1'); i got nothing to show koz there is nothing like su in database. tell me a good way to solve the problem or code to pass two variables in header like header('location:Aeditprofile.php?$user=$id && su=1'); something like this Regards HAroon Link to comment https://forums.phpfreaks.com/topic/36937-solved-problem-sending-variables-in-header/ Share on other sites More sharing options...
Orio Posted February 3, 2007 Share Posted February 3, 2007 Sure, you can do it like this: header("Location: Aeditprofile.php?user=".$id."&su=1"); Orio. Link to comment https://forums.phpfreaks.com/topic/36937-solved-problem-sending-variables-in-header/#findComment-176235 Share on other sites More sharing options...
haroon Posted February 3, 2007 Author Share Posted February 3, 2007 Still Not Working Link to comment https://forums.phpfreaks.com/topic/36937-solved-problem-sending-variables-in-header/#findComment-176276 Share on other sites More sharing options...
haroon Posted February 3, 2007 Author Share Posted February 3, 2007 Oh Thnx Man Done It Cheers ORIO Link to comment https://forums.phpfreaks.com/topic/36937-solved-problem-sending-variables-in-header/#findComment-176281 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.