我正在从JavaScript将两个数据发送到我的php:
http://forum.research.bell-labs.com/zeeshan/publication/phpwithmysql11111.php?rowid=BL09.00001,0

1)BL09.00001
2)0

如何在我的php中分别识别它们?
我正在尝试做:

$ job = $ _ GET [rowid];
echo($ job);

这给了我两个领域。

最佳答案

我想说您需要在GET请求中命名第二个参数以及第一个参数。

使用这样的URL:http://forum...../phpwithmysql11111.php?rowid=BL09.00001&other=1

然后,$ _ GET ['rowid']应该为BL09.00001,而$ _GET ['other']应该为1。

07-28 08:39