我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

带弹出/重定向的PHP

I have a problem with my PHP code and I don't know if there is an easy fix to what I am trying to accomplish. I have a contact page and I would like to press the submit button, then have it display a message on a new page, then once I press some sort of "ok" button, have the page redirect me to my index page. So far, I was only able to get the redirect to work.

<?php

$redirect_page = 'index.html';
$redirect = True;
if ($redirect==True) {
    header('Location: '.$redirect_page); exit();
}

?>

近期文章

  • 使用ajax调用blob数据
  • 如何将String从php传递给C#
  • .htaccess文件在将根文件夹重定向到文件时返回404错误
  • curlopt_httpheader相当于c#
  • 上传图片代码的问题 - laravel
  • wget在使用php执行时无效
  • 从PHP运行python脚本给我null输出
  • apache不接受这个htaccess重写规则[重复]
  • Laravel中的多会话表
  • PHP CURL不获取代理(没有身份验证)
  • Taleo SOAP请求不返回PHP中的任何数据
  • 为什么选择字段不显示?
  • 通过sendgrid通过azure web app发送电子邮件
  • 大表格的Codeigniter表单验证(28个字段)
  • Laravel Query构建器中的多对多关系
  • PHP MySQLi - 基于产品类别显示产品
  • WooCommerce购物车 - 动态设置产品价格然后将优惠券应用于新的总计
  • Laravel - 无法从.env文件获取.pem公钥数据
  • PhpOffice / PhpWord库内容跳转到第二页问题
  • 如何找到方法属性/属性的类类型? [重复]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华