Multiple $_GET from a link parameters

前端 未结 4 520
盖世英雄少女心
盖世英雄少女心 2021-01-14 14:22

I\'m sending values to php file using js like that:

validation.php?firstName=test?lastName=test?email=test?contactNumber=test?title=test?description=test


        
相关标签:
4条回答
  • 2021-01-14 15:01

    You need to separate them with the ampersand sign:

    validation.php?firstName=test&lastName=test&email=test&contactNumber=test&title=test&description=test
    
    0 讨论(0)
  • 2021-01-14 15:11

    Use the & instead of the ? in the url between variables.

    0 讨论(0)
  • 2021-01-14 15:20

    ? indicates the start of a query string but key/value pairs within it are separated with & or (less commonly) ;.

    0 讨论(0)
  • 2021-01-14 15:22

    your URL is wrong. Make it like:

    validation.php?firstName=test&lastName=test&email=test&contactNumber=test&title=test&description=test
    
    0 讨论(0)
提交回复
热议问题