如何将表单值从一个页面传递到另一个页面?

编程入门 行业动态 更新时间:2024-10-23 19:25:06
本文介绍了如何将表单值从一个页面传递到另一个页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要将URL和域类型从一个HTML页面传递到另一个,显然最好的方法是使用java脚本创建一个cookie,并将值传递到下一个HTML页面,但我不知道任何关于饼干或甚至从哪里开始。在哪里可以找到一个好的指南,让我开始使用cookies和/或如何将价值从一种形式传递到另一种?有没有更简单的方法,而不是使用Cookie?谢谢!

I need to pass a URL and domain type from one HTML page to another and apparently the best way to do this is using java-script to create a cookie and pass the value to the next HTML page, but I do not know anything about cookies or even where to start. Where can I find a good guide to get me started with cookies and/or how to pass the value from one form to another? Is there a simpler way instead of using cookies? Thanks!

推荐答案

有多种方法可以做到这一点:$ b​​ $ b - POST变量。 - 将值保存在会话中(取决于语言可以更多或更少)。 - 或者保存到cookie。

There is more than one way to do this: - You can pass the values using GET or POST variables. - Save the value in the session (depending on the language this can be more or less easier). - Or save it to a cookie.

我认为最简单的方法是使用POST变量(和GET一样简单,避免在网址本身传递网址)。

I think the easiest way to do it is to use POST variables (is as easy as with GET but you should avoid passing an URL in the url itself).

更多推荐

如何将表单值从一个页面传递到另一个页面?

本文发布于:2023-05-25 10:55:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/226611.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:词库加载错误:Could not find file 'D:\淘小白 高铁采集器win10\Configuration\Dict_Sto

发布评论

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

>www.elefans.com

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