参数在java脚本中传入访问url?

时间:2011-08-23 11:44:06

标签: javascript android cordova

i am designing a  project in **phonegap** with android. 

我有两个文本框,其中ID是id和密码。现在我想知道如何使用url发送这些文本框的值。

for one parameter i have done it successfully as follows.

**url: 'http://192.168.1.214/sample/dologin.php?id='+id**

but i dont know how can i send two argument. second argument is password. Please suggest me what should i do..?

1 个答案:

答案 0 :(得分:2)

'http://192.168.1.214/sample/dologin.php?id='+id+'&password='+yourpassword