Jump to content

Refresh tag - Problems with META in IE


Vampen

Recommended Posts

Hello.

 

Can someone please give me a tip here how to go directly to the previous page after visiting this one? I press send mail and i go to send_mail.php

 

Here is the code

 

<?php
$id = $_GET['id'];
function kobleTil($databasenavn) {

$vert = "localhost";
$bruker = "xxxx";
$passord = "xxxx";
$tilkobling = mysql_connect($vert, $bruker, $passord);
if (!$tilkobling) {
		die("Kunne ikke koble til: " . mysql_error());
}

$valgtDB = mysql_select_db($databasenavn, $tilkobling);
if (!$valgtDB) {
		die("Kunne ikke bruke databasen: " . mysql_error());
}
return $tilkobling ;
}

define("TILBAKE",
				"<p><a href='javascript:history.go(-1)'>Tilbake</a>");
?>	

<?php 


$tilkobling = kobleTil("xxxx"); //Her hentar eg fram igjen funksjonen

$sql = "SELECT * from annonse,bruker where idannonse = $id and bruker.idbruker=annonse.bruker_idbruker";  

$resultat = mysql_query($sql, $tilkobling);	

$rad = mysql_fetch_array( $resultat );
$navn = $_POST['navn'];
$bruker_epost = $_POST['bruker_epost'];
$melding = $_POST['melding'];
$_epost2 = $rad['epost'];
$_navn = $rad['navn'];
$annonse = $rad['overskrift'];

$id = $_GET['id'];

mail("$_epost2","Ny melding fra xxxx.net","Kjære $navn. \n\nDu har fått ei melding fra xxxx.net der du har lagt ut annonsa:   \n\n  $annonse.\n\nMelding er som føljane:\n\n$melding\n\n Beskjed sendt av:\n\n Navn: $navn \n Epost: $bruker_epost\n");  
echo "<br><br><center><IMG SRC='grafikk/ANNONSA.jpg'></center>";
echo "<META HTTP-EQUIV='refresh' content='5;URL=http://bustad.net/vis_ann.php?id=".$id.">";

?>

 

 

On the second last line here i got the meta tag. This is working nice in Firefox, but in IE it just displays the whole HTML code.

 

Also tried to use header but this didn't work. Nothing happens.

 

Thx!

 

Link to comment
https://forums.phpfreaks.com/topic/38692-refresh-tag-problems-with-meta-in-ie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.