Skip the confirmation page?
Skip the confirmation page?
Hello - Thanks for the great message board. Does anyone know a way to go back directly to the message board after a message is posted and skip the confirmation notice "Your message was successfully added!"?
-
- Posts: 11
- Joined: Fri Jun 30, 2006 2:49 pm
Try replacing these lines in the addNewReply function:
<p> </p>
<p> </p>
<p align="center"><b>Your message was successfully added!</b></p>
<p align="center"><a href="mboard.php">Click here to continue</a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<?php
printCopyHTML();
printDownHTML();
exit();
with
header ("Location: mboard.php");
<p> </p>
<p> </p>
<p align="center"><b>Your message was successfully added!</b></p>
<p align="center"><a href="mboard.php">Click here to continue</a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<?php
printCopyHTML();
printDownHTML();
exit();
with
header ("Location: mboard.php");
I'm afraid it's not that simple because top HTML is already printed when you come to this code. You'd have to make sure printTopHTML(); is not executed when the action is adding new post/reply.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools