Jump to content

[SOLVED] Problem Sending Variables in Header


haroon

Recommended Posts

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

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.