0

hi,

i am redirecting user to previous page after adding the data.

user has come from the url

http://localhost/goaweb/admin/viewimage/54400

where add data button is placed

to

http://localhost/goaweb/admin/addpic/NTQ0MDA=

for adding the data (add data page)

now i am rediirecting the browser to preview URL from where he came to add data page.

i am using header('Location:'.$_SERVER);

but it's giving me URL like http://localhost/http://localhost/goaweb/admin/viewimage/54400

which is incorrect redirection

could anybody please tell me how can i make it woking like this URL
http://localhost/goaweb/admin/viewimage/54400 with $_SERVER


Thanks.

3
Contributors
3
Replies
5
Views
8 Years
Discussion Span
Last Post by samarudge
0

Try this code

header('Location: '.$_SERVER['HTTP_REFERER']);

it's not working.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.