Home > Backend Development > PHP Tutorial > 怎么将input标签的值存入COOKIE并保存1年

怎么将input标签的值存入COOKIE并保存1年

WBOY
Release: 2016-06-13 13:10:04
Original
1900 people have browsed it

如何将input标签的值存入COOKIE并保存1年?
input标签代码如下:

HTML code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
<input type="hidden" id="campusname" value="西安电子科技大学">

Copy after login

想将这个value的值存入名为'campus'的COOKIE,并保存一年,该如何处理?

------解决方案--------------------
用js的cookie
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template