search

Home  >  Q&A  >  body text

PHP determines whether the parameters after Url are legal

For example, 1.php?123 correctly allows the output of 666

  1. php?Does not output any characters except 123

What should I do with this? How to write please help me^_^^_^^_^^_^^_^^_^^_^^_^^_^^_^^_^^_^^_^^_^

我是谁我是谁2044 days ago1285

reply all(1)I'll reply

  • 殘留の回憶

    殘留の回憶2019-05-21 15:37:19

    explode('?',$url)

    After splitting, take out the value after ? and then judge whether it is legal

    reply
    0
  • Cancelreply