# Hmmm. Relocation

**URL:** <https://forum.kirupa.com/t/hmmm-relocation/196354>\
**Category:** Uncategorized\
**Created:** [August 7, 2006, 9:08pm UTC](https://forum.kirupa.com/t/hmmm-relocation/196354 "2006-08-07T21:08:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blazes](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@blazes](https://forum.kirupa.com/u/blazes)\
**Post date:** [August 7, 2006, 9:08pm UTC](https://forum.kirupa.com/t/hmmm-relocation/196354/1 "2006-08-07T21:08:56Z")

</div>

Hello everyone. I need a page to be redirected after numerous if statements. I have the ifs done, but how should I go about relocating the page? I tried header(“Location: showimage.php?name=’.$filename.’”);, but the headers had been sent out already. And their sent before the page is even called, so no amout of moving it will do. I tried javascript, but I don’t know it and couldn’t figure out how to add the varible to it. I tried:

```auto
[FONT=Arial, Helvetica][SIZE=2]
 window.location="[/SIZE][/FONT]showimage.php?name=<? '.$filename.' ?>[FONT=Arial, Helvetica][SIZE=2]";[/SIZE][/FONT]

```

But I can’t get it to parse the php. Any ideas?
