donglefu6195 2013-12-02 12:41
浏览 37
已采纳

我们可以在邮件功能中使用post方法重定向到另一个页面

While writing php mail function .. i need to put a link in that mail. and also i need to transfer two values to that target page . now i am using .

<a href='http://www.example.com/allow.php?id=$url&cat=$cat'>Click here to accept his request</a> 

When user click this link that page will get those value. But i have to use post method instead of get method . to prevent from knowing of ID and CAT.

Is there any chance to use post method in mail. OR how to delete this link from url after load. or how to encrypt this link..

  • 写回答

3条回答 默认 最新

  • doutui2883 2013-12-02 13:05
    关注

    You are unable to POST in an email, the only method to do this is to use a unique token. This can be, if required, expired once clicked which is used with things such as validating your email address. The unique token can the be linked via a database to link the token to the url and the id which you do not wish the user to see.

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

报告相同问题?

悬赏问题

  • ¥15 CMFCPropertyPage
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题
  • ¥15 谁会P4语言啊,我想请教一下
  • ¥15 哪个tomcat中startup一直一闪而过 找不出问题
  • ¥15 这个怎么改成直流激励源给加热电阻提供5a电流呀
  • ¥50 求解vmware的网络模式问题 别拿AI回答
  • ¥24 EFS加密后,在同一台电脑解密出错,证书界面找不到对应指纹的证书,未备份证书,求在原电脑解密的方法,可行即采纳