[PHP-users 27277] Re: redirect on successful submisssion to another page in Quickform
Norihito Yoshioka
noyo @ pop16.odn.ne.jp
2005年 10月 22日 (土) 19:41:29 JST
Hello sundara.
I'm yoshi.
I think you forgot 'exit();' statement after
'require_once('page2.php');' statement
or last line of page2.php.
For example:
--page1.php--
<?php
*** snip ***
function search_mserver_logdata($ary_sloginput_info) {
$tcode=$ary_sloginput_info['txtCode'];
echo "before calling: $tcode ";
echo " ";
require_once('page2.php');
exit(); // <--- *THIS*
}
-----page1.php ends here-----------------
--Page2.php--
*** snip ***
<p>c 2005 baka. All rights reserved.</p>
</BODY>
</HTML>
<?php exit(); // <-- *THIS* ?>
----------------------page2.php ends here---
Maybe I have a misunderstanding of your problem
because of my bad english.
PHP-users メーリングリストの案内