Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP link question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
<!doctype html public &quot;-//W3C//DTD HTML 4.0 //EN&quot;>
<html>
<head>
<title>Reactie toevoegen</title>
</head>
<body>
<center>Klik <a href=&quot;reacties.html&quot;>hier</a> om het gastenboek te bekijken.</center>
<?php
$uitvoerbestand = &quot;reacties.html&quot;;
$bestandsindex = fopen($uitvoerbestand,&quot;a&quot;);
fwrite($bestandsindex, &quot;Een reactie van : $naam ($email): <br>&quot;);
fwrite($bestandsindex, &quot;$reactie<br><hr>&quot;);
fclose($bestandsindex);
?>
</body>
</html>

What do I have to do to get this page redirect to reacties.html ? If I put a location header in this file hegives the error that the page is already been used
 
A simple solution would be to use the html meta refresh tag.


Calvin
 
Hi nitro,

If u want to use the header function ... u should not put any tag before the hearder function ...

for e.g.
<?php
.....lots of code .....
header($URL);
?>
<html>
<body>
<?php

....lots of other code

?>
</body>
</html>

Hope this help !

Regards

Wailey
 
okay, this helps a lot. Actually, it was a stupid question, but I am just a beginner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top