重定向到页面。

编程入门 行业动态 更新时间:2024-10-10 14:27:18
本文介绍了重定向到页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嘿伙计 i有5个区域,我想将区域经理重定向到选择的区域页面。 so大卫·普莱斯想要去他所在的地区,这个地区可能是2区, 所以他们会进入登录界面,输入用户名和密码,然后他们会被重定向到该页面基于输入的信息。 是thinkin可以只有一个页面,然后有链接,但我不希望其他地区看到其他地区的信息。 所以任何帮助人员。

hey guys i have 5regions, and i would like to redirect a region manager to the region page of der choice. so say David Price wants to go to his region, which wouyld be region 2, so they would come to the loggin screen, enter there user name and password, they would then be redirected to the page based on th information entered. was thinkin could just have a page, then have links on it, but i dont want other regions to see other regions information. so any help guys.

推荐答案

使用包含用户ID和区域/页面名称的PHP数组或提取页面名称来自数据库。 Ronald:很酷: Either use a PHP array containing userid''s and region/page names or extract the page names from a database. Ronald :cool:

使用包含userid的PHP数组's和区域/页面名称或从数据库中提取页面名称。 Ronald:很酷: Either use a PHP array containing userid''s and region/page names or extract the page names from a database. Ronald :cool:

想法如何做到这一点,我的PHP水平是有限的。 虽然思考可以使用if statment if id == 1然后 davidp.php 其他 如果id == 2 但是我不知道如何去做它

ideas how to do that, my level of php is limited. although was thinkin could use if statment if id==1 then davidp.php else if id==2 else but i dont know how to go about it

如果你想让用户选择区域编号或你显示区域页面它会产生diffrecne取决于他/她的名字或用户ID。这是什么? 在第一种情况下你可以有一个像这样的数组 [php] It makes a diffrecne if you want to let the user choose the region number or that you show the region page depending on his/her name or userid. Which is it? In the first case you can have an array like [php]

更多推荐

重定向到页面。

本文发布于:2023-11-28 20:34:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643866.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重定向   页面

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!