奶头挺立呻吟高潮av全片,成人试看120秒体验区,性欧美极品v,A片高潮抽搐揉捏奶头视频

php語(yǔ)言

php使用cookie實(shí)現(xiàn)記住用戶名和實(shí)現(xiàn)代碼

時(shí)間:2025-04-04 03:00:12 php語(yǔ)言 我要投稿
  • 相關(guān)推薦

php使用cookie實(shí)現(xiàn)記住用戶名和實(shí)現(xiàn)代碼

  文章主要介紹了php使用cookie實(shí)現(xiàn)記住用戶名和密碼實(shí)現(xiàn)代碼,本文直接給出實(shí)現(xiàn)代碼,需要的朋友可以參考下。

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <form id="form1" name="form1" method="post" action="check_remember.php">

  <table width="300" border="1" align="center" cellpadding="0" cellspacing="0">

  <thead>

  <tr>

  <td colspan="2" align="center"><b>記住用戶名和密碼</b></td>

  </tr>

  </thead>

  <tr align="center">

  <td>用 戶 名:</td>

  <td><input type="text" value="<?php echo $_COOKIE['name'];?>" name="name"></td>

  </tr>

  <tr align="center">

  <td>密碼:</td>

  <td><input type="password" name="password" value="<?php echo $_COOKIE['password']?>"></td>

  </tr>

  <tr align="center">

  <td>記住用戶名和密碼</td>

  <td><?php if($_COOKIE['remember'] == 1){?><input type="checkbox" name="remember" value="1" checked><?php }else{($_COOKIE['remember'] == "")?><input type="checkbox" name="remember" value="1"><?php }?></td>

  </tr>

  <tr align="center">

  <td colspan="2"><input type="submit" name="Submit" value="提交" /></td>

  </tr>

  </table>

  </form>

  check_remember.php

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <?php

  $name = $_POST['name'];

  $password = $_POST['password'];

  $remember = $_POST['remember'];

  if($remember == 1){

  setcookie('name',$name,time()+3600);

  setcookie('password',$password,time()+3600);

  setcookie('remember',$remember,time()+3600);

  }else{

  setcookie('name',$name,time()-3600);

  setcookie('password',$password,time()-3600);

  setcookie('remember',$remember,time()-3600);

  }

  echo "<a href=\"remember.php\">返回</a>";

  ?>

【php使用cookie實(shí)現(xiàn)記住用戶名和實(shí)現(xiàn)代碼】相關(guān)文章:

php用cookie實(shí)現(xiàn)記住登錄狀態(tài)10-16

php的curl實(shí)現(xiàn)get和post的代碼07-07

PHP滾動(dòng)日志的代碼實(shí)現(xiàn)11-15

php實(shí)現(xiàn)無限級(jí)分類實(shí)現(xiàn)代碼07-03

php實(shí)現(xiàn)cookie加密的方法有哪些09-23

PHP中如何實(shí)現(xiàn)crontab代碼05-30

PHP實(shí)現(xiàn)大文件上傳源代碼10-21

php進(jìn)度條實(shí)現(xiàn)代碼09-20

php代碼如何實(shí)現(xiàn)命令行執(zhí)行05-19

主站蜘蛛池模板: 虎林市| 修文县| 泰和县| 繁峙县| 茶陵县| 丰城市| 汝阳县| 肇庆市| 罗平县| 海伦市| 瑞昌市| 治县。| 会理县| 永靖县| 阿勒泰市| 临泽县| 图木舒克市| 衢州市| 太湖县| 嘉善县| 南城县| 磐石市| 苏州市| 五原县| 大石桥市| 建昌县| 平罗县| 拉萨市| 大关县| 江川县| 霍邱县| 彩票| 中卫市| 定陶县| 汪清县| 西宁市| 潮安县| 河津市| 海晏县| 磐安县| 八宿县|