看板 PHP 關於我們 聯絡資訊
因為最近在用cURL 發現要是變數名是像".a"這樣的話 傳出去以後接收的網頁會接不到欸 請問跟那個點有關係嗎? 附上Code --------傳輸-------- <form method="POST"> <input type=hidden name=".c" value="69OXnnR18fd"> <input type=hidden name=".t" value="1249134756"> <input type="password" name="passwd" size="12" maxlength="12"> <input type="submit" name="submit" value="Submit"> </form> --------接收-------- echo "passwd={$_POST["passwd"]}&.t={$_POST".t"]}&.c={$_POST[".c"]}"; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.32.8.215
guancheng :. 被轉成 _ 了,用print_r($_POST);就看的到了 08/01 22:27
guancheng :所以抓取時改用$_POST['_t']就可以了 08/01 22:28
hinet60613 :喔喔可以了 謝謝 08/01 23:48