Passing javascript variables to php?

后端 未结 5 1714
感情败类
感情败类 2020-12-04 03:31

ok so im trying to get a javascript variable into a php script, this would be an example,



        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 04:05

    You could use the following Javascript which will link to somepage.php with the variable in the Url

    
    

    This is the contents of somepage.php which recieves the variable and echoes it

    
    

提交回复
热议问题