如何将input标签的值存入COOKIE并保存1年?
input标签代码如下:
HTML code
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->
<input type="hidden" id="campusname" value="西安电子科技大学">
想将这个value的值存入名为'campus'的COOKIE,并保存一年,该如何处理?
------解决方案--------------------
用js的cookie
Statement: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