1
therock
Open redirect page in Xoops
  • 2005/11/21 9:49

  • therock

  • Just popping in

  • Posts: 38

  • Since: 2005/2/2 2


Hi.

I have a problem whit a page I have done in the module "MyPage". The problem I that I have form that the user fill in whit the "Christmas wishes" and after they hit the "Send" button they should have a new page open whit the message "Check your e-mail, the Santa has e-mail you... ”The page is open on the whole page so no "Xoops" is visible; it’s just a new page. I want to open the new page in the "Xoops" how do I do that..????
Please help me...
The code is like this:

////// Redirect user after submitting form
$redirect_url = 'mynewpage.htm';

the SubmitCode...
function redirect(){
global $redirect_url;
header("Location: $redirect_url");
exit();

2
therock
Solved: Open redirect page in Xoops
  • 2005/11/22 13:08

  • therock

  • Just popping in

  • Posts: 38

  • Since: 2005/2/2 2


I tested and find a solution to this, I put the XOOPS code in at the top and the bottom.

<?php
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>
Myhtml...
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>

And saved the page as a php file and that fixed my problem.

Login

Who's Online

207 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits