Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2017, 06:47 PM
p810 p810 is offline
Member
 
Join Date: Apr 2017
Posts: 6
Gender: Unknown/Other
Credits: 1,161
p810 is on a distinguished road
Default

If you want to redirect a user to levelup.php you have two options.

With PHP, you can send a Location header with the HTTP response. Note that this header must be sent before any output is sent to the user.

PHP Code:
/**
 * @see http://php.net/manual/en/function.header.php
 */
header('Location: /levelup.php');

exit; 
I will look at Mysidia later and tell you where it would be best to place this code. I know that Mysidia is built on some variant of MVC, but I haven't had my hands in the codebase since it was Rusnak's adoptables script so I need to brush up.

Another option is using JavaScript to redirect the user. This can be done after output has been sent and the page has been loaded. However users who have JavaScript disabled in their browsers will not be redirected.

Code:
wndow.location = '/levelup.php';
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:26 AM.

Currently Active Users: 3648 (0 members and 3648 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636