重定向到页面。 [英] redirect to page.

查看:130
本文介绍了重定向到页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计


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]


这篇关于重定向到页面。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆