如何有条件地转到另一个page.php [英] How to go to another page.php with condition

查看:60
本文介绍了如何有条件地转到另一个page.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在有条件的情况下转到另一个page.php
我创建了条件页面的用户和密码,但是我不知道如何将该页面链接到我的download.php来下载条件用户和密码为true的附件

How to go to another page.php with condition
I create the user and password for condition a page but I don''t know how to link this page to my download.php for download a attach file that condition fron user and password is true for it

推荐答案

此示例的逻辑将指导您解决问题.链接到您的下载页面将涉及与该示例相同的编程逻辑.您可以尝试以下操作:

The logics of this sample will guide you to solve your problem. Linking to your download page will involve the same programming logics as this sample. You may try something like:

<?php
if(isset(


_REQUEST [' 签名']) ){ if(
_REQUEST['sign'])){ if(


_REQUEST [' 签名'] == ' 注册'){ // 这会将用户重定向到注册"页面 标头(" ); // 将用户重定向到此页面时,您会向他们显示一个登录表单.登录后,您将验证并验证其信息,并在满意时使用标题功能将其重定向到您的下载页面.相同的逻辑将应用于注册表单. } elseif(
_REQUEST['sign'] == 'signup'){ //This redirects the user to the Signup page header("Location: /page0.php"); //When the user is redirected to this page you present to them a login form. Upon login you verify and validate their information, and when satisfactory, you use the header function to redirect them to your download page. The same logic will be applied in the signup form. } elseif(


这篇关于如何有条件地转到另一个page.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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