# Php redirect

**URL:** <https://forum.kirupa.com/t/php-redirect/220586>\
**Category:** Uncategorized\
**Created:** [March 27, 2007, 4:00pm UTC](https://forum.kirupa.com/t/php-redirect/220586 "2007-03-27T16:00:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danulf](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/danulf/32/555_2.png) [@danulf](https://forum.kirupa.com/u/danulf)\
**Post date:** [March 27, 2007, 4:00pm UTC](https://forum.kirupa.com/t/php-redirect/220586/1 "2007-03-27T16:00:25Z")

</div>

I decided yesterday that it would be cool to know some php, so I installed it and started looking at some tutorials. I hit a bit of a snag when I started experimenting myself though. I have an upload form, very basic, it sends a file to a destination and displays the files in that folder. Right now I have the directory list and upload form at the same page, and I like it that way. When the file have been uploaded, you get a popup saying that the upload succeeded, if it didn’t, you get a popup saying that. Now what I want is to be redirected back to the index (with the upload form/dir list), and keeping the popups. If I use the _header(Location: ‘blebb.html’);_ it just redirects back, it doesn’t show the popups, echoes, whatever. Is there an other way of doing this?

Hope my explanation made sense 😃
