Hoe te zien php redirect ?

Status
Niet open voor verdere reacties.
Aan:
<form action="index.php"...
Hij verwerkt de polls dus in index.php.

Suc6,
Ginojo
 
kijken naar headers nog niet in officele lib van php
PHP:
	function redirect($url){
		if (!headers_sent()){
			//print('Location: http://'.$_SERVER['SERVER_NAME'].$url);
			header('Location: http://'.$_SERVER['SERVER_NAME'].$url);
			die('<meta http-equiv="refresh" content="0;URL=http://'.$_SERVER['SERVER_NAME'].$url.'/>";');
		}else {
			die('Redirect Headers error to send <a href="http://'.$_SERVER['SERVER_NAME'].$url.'" >here the link</a>');
		}
	}
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan