简体   繁体   English

PHP-登录后重定向到另一篇joomla文章

[英]PHP - redirect to another joomla article after login

I was just wondering how to write the code to redirect to another Joomla article using the ID of that article after I have done the validation to ensure the user exists..the article URL in full is index.php?option=com_content&view=article&id=5, im just not sure what code goes before this to implement the redirection? 我只是想知道如何在完成验证以确保用户存在之后使用该文章的ID编写代码以重定向到另一篇Joomla文章。文章的完整URL为index.php?option = com_content&view = article&id = 5,我只是不确定在执行重定向之前需要先执行什么代码?

Thanks! 谢谢!

header('Location: http://www.google.com');

您需要在脚本打印任何内容(echo,var_dump或print)之前执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM