Toon posts:

redirect doet vreemd in internet explorer

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb hier een vreemd probleem. Als ik dus:

PHP:
1
<? header('Location: /viewtopic.php?f=4&t=178&p=14593#p14593');?> 

doe dan krijg ik in internet explorer geen #p14593 maar in firefox wel.

  • EdwinG
  • Registratie: Oktober 2002
  • Laatst online: 30-11 19:23
Uit de php handleiding:
Note: HTTP/1.1 requires an absolute URI as argument to » Location: including the scheme, hostname and absolute path, but some clients accept relative URIs. You can usually use $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF'] and dirname() to make an absolute URI from a relative one yourself:
(voeg dus 'http://www.blablabla.bla' toe aan je location)

edit:
Voorbeeld:

PHP:
1
header('Location: http://mijndomein.nl/viewtopic.php?f=4&t=178&p=14593#p14593');

[ Voor 13% gewijzigd door EdwinG op 03-07-2007 13:42 ]

Bezoek eens een willekeurige pagina