Jump to content


Photo

[resolved] Quick Question...


  • Please log in to reply
3 replies to this topic

#1 ibanez270dx

ibanez270dx
  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts

Posted 10 August 2006 - 10:48 PM

Hi,
Just a quick question... I need this to work, but it redirects to "$filename2" instead of "thename.xls".

echo '<META http-equiv="refresh" content="0;URL=$filename2">';

What can I do with the quotes and stuff to make it work?

Thanks,
- Jeff

#2 SharkBait

SharkBait
  • Members
  • PipPipPip
  • Advanced Member
  • 845 posts
  • LocationMetro Vancouver, BC

Posted 10 August 2006 - 10:51 PM

I'd use
<?php
header("Location: {$filename2}");
exit();
?>

Not sure why the META refresh isnt working though.


#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 10 August 2006 - 10:53 PM

echo '<META http-equiv="refresh" content="0;URL='. $filename2.'">';

Legend has it that reading the manual never killed anyone.
My site

#4 ibanez270dx

ibanez270dx
  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts

Posted 10 August 2006 - 11:28 PM

awesome! Thanks for your help!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users