如何有条件地转到另一个page.php

编程入门 行业动态 更新时间:2024-10-28 06:22:45
本文介绍了如何有条件地转到另一个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 [' 签名'] == ' 注册'){ // 这会将用户重定向到注册"页面 标头(" 位置:/page0.php" ); // 将用户重定向到此页面时,您会向他们显示一个登录表单.登录后,您将验证并验证其信息,并在满意时使用标题功能将其重定向到您的下载页面.相同的逻辑将应用于注册表单. } 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

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

发布评论

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

>www.elefans.com

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