doune1000 2015-12-25 07:43
浏览 47
已采纳

Post方法在PHP中不起作用

I've tried some other posts, but never made it.

My php form inside html file is :

<form action="test.php" method="POST">
VAR:<input type="text" name="var"><br>
<input type="submit">
</form>

I'm receiving the variable in test.php as <br>

$_POST['var'] ---- > doesn't work! <br>

Tried, $_REQUEST['var'] ----> doesn't work!

I tried the form using get request, it works like a charm on the other end at test.php by using both $_GET['var'] and $_REQUEST['var'] Any way I can parse the request in the form of post request from that form to test.php ..

Appreciate the help! Thanks.

  • 写回答

4条回答 默认 最新

  • douxiza9868 2015-12-26 04:49
    关注

    Updated to PHP 7.0 and it's working now!

    Thanks everyone for their help!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 Stata 面板数据模型选择
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用