Dear Helpers, i am pasting the Replay form code in my mainpage:
// Форма ввода нового сообщения
if (($user_id || $set['mod_guest'] == 2) && !isset($ban['1']) && !isset($ban['13'])) {
$token = mt_rand(1000, 100000);
$_SESSION['token'] = $token;
echo '<div class="gmenu"><form name="form" action="/guestbook/index.php?act=say" method="post">';
if (!$user_id)
echo $lng['name'] . ' (max 25):<br/><input type="text" name="name" maxlength="25"/><br/>';
echo '<b>' . $lng['message'] . '</b> <small>(max 5000)</small>:<br/>';
echo bbcode::auto_bb('form', 'msg');
echo '<textarea rows="' . $set_user['field_h'] . '" name="msg"></textarea><br/>';
if ($set_user['translit'])
echo '<input type="checkbox" name="msgtrans" value="1" /> ' . $lng['translit'] . '<br/>';
if (!$user_id) {
// CAPTCHA для гостей
echo '<img src="../captcha.php?r=' . rand(1000, 9999) . '" alt="' . $lng['captcha'] . '"/><br />' .
'<input type="text" size="5" maxlength="5" name="code"/> ' . $lng['captcha'] . '<br />';
}
echo '<input type="hidden" name="token" value="' . $token . '"/>' .
'<input type="submit" name="submit" value="' . $lng['sent'] . '"/></form>';
}The code is 100% working, but after Pasting in this Form Text and after click at the send button i am automaticly going to /guestbook/index.php?
But how i can set to this with this style,
Example:
if i am or anyone pasted text msg in this form box then we will not going in to /guestbook/index.php? We will after text pasting automaticly Redirecting in mainpage.php ?