search

Home  >  Q&A  >  body text

tp5.1 Request()->param() obtains the problem of automatic rounding of GET parameters

Today I will build a TP verification ID function. I found that when a decimal is passed in through the GET method, the decimal will be automatically removed when printed. Is there any way to retain it?

葫芦娃平衡盘葫芦娃平衡盘1530 days ago1747

reply all(2)I'll reply

  • 灭绝师太

    灭绝师太2021-01-18 09:14:20

    tp6 can get and pass decimal points normally. When tp5 encounters http requests containing special characters, you can use JavaScript's escape() function to process special parameters

    reply
    1
  • 英勇**团唐朝安志勇连连长

    Master, I am a former VIP. Where can I get the source code for practice?

    英勇**团唐朝安志勇连连长 · 2021-02-18 14:29:59
  • Cancelreply