duandian8251 2011-10-01 17:49
浏览 239
已采纳

在header()中发送POST参数?

I'm making a register page, signup.php, and basically what I want it to do is check for errors and if there are none, redirect to register.php. That is fine and whatnot, but register.php is the page where the actual account is made (e.g. mySQL query). Of course, in order to do that, I actually need the params gathered form signup.php. I was wondering if I could do something like this..

    header("Location: register.php, TYPE: POST, PARAMS: {user,pass,email}")

Obviously I can not use $_GET as I am transmitting sensitive data (e.g. passwords).

Any ideas/suggestions?

EDIT: Thank you all for your answers. I am now storing the parameters in a $_SESSION variable.

  • 写回答

4条回答 默认 最新

  • du9843 2011-10-01 17:56
    关注

    No, you can't, and such data would be just as insecure to any determined attacker.

    Store the data in a session variable for use in the next page.

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

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器