Skip the confirmation page?

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
helmrict
Posts: 2
Joined: Thu Jun 29, 2006 3:13 am

Skip the confirmation page?

Post by helmrict »

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!"?
MrBaseball34
Posts: 11
Joined: Fri Jun 30, 2006 2:49 pm

Post by MrBaseball34 »

Try replacing these lines in the addNewReply function:

<p>&nbsp;</p>
<p>&nbsp;</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>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<?php
printCopyHTML();
printDownHTML();
exit();


with
header ("Location: mboard.php");
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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 Image

Image 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
MrBaseball34
Posts: 11
Joined: Fri Jun 30, 2006 2:49 pm

Post by MrBaseball34 »

oops, forgot about that one.
Locked