python - python脚本,输出重定向信号以将浏览器指向目标登录页面
问题描述
我将 html 表单发布到 python 脚本。但是,有没有办法执行返回重定向(“/thanks.html”),这将允许 python 脚本运行,并将用户重定向到另一个 URL。正在发布的 python 脚本也将继续发布到另一个 python 脚本。我试过ajax和javascript。我不能既发布数据又重定向用户。
解决方案
尝试返回这个 html:
<html>
<head>
<script>
window.location="/thanks.html" #or whatever the url is
</script>
</head>
<html>
推荐阅读
- java - 使用 java 实现 Trie
- php - 循环通过 php 中的 x 个数据列表下拉列表
- javascript - 带有 javascript 的 HTML 画布
- r - 如何从整个世界栅格和该特定国家的 shapefile 绘制特定国家/地区的地图?
- java - 为什么在 Spring Boot 项目中 HSQLDialect 初始化需要这么长时间?
- azure-devops - VSTS Build/AzureDevOps - nupkg 文件名不包含未指定文件中的版本
- java - 片段空对象引用
- javascript - 垂直 div 反转 H1 颜色
- google-sheets - 如何在 Google 表格中检查多个单元格的值
- gnuplot - Gnuplot -- 参数为零的不完整 Beta 函数