Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 从文本框中检索值并在链接中使用_Javascript_Php - Fatal编程技术网

Javascript 从文本框中检索值并在链接中使用

Javascript 从文本框中检索值并在链接中使用,javascript,php,Javascript,Php,我有一个链接,需要从文本字段中检索一个值。链接如下 http://cloudagent.in/CAServices/AgentManualDial.php?username=Versa_Drivers&api_key=KK11936cc1f4b65e9cee0d7022edaa0b89&**customerNumber=30xxxx**&uui=Click2Call&skill=Versa_Drivers&did=914439942522 在上面的链接中

我有一个链接,需要从文本字段中检索一个值。链接如下

http://cloudagent.in/CAServices/AgentManualDial.php?username=Versa_Drivers&api_key=KK11936cc1f4b65e9cee0d7022edaa0b89&**customerNumber=30xxxx**&uui=Click2Call&skill=Versa_Drivers&did=914439942522

在上面的链接中,我需要从文本字段中检索customerNumber=30xxx。请提供帮助,并提前感谢…

正如Alexander所说,使用js或jquery获取文本字段的值,然后使用它解析动态生成的url中的值。您可以在cust no的文本字段上使用OnChange事件侦听器来调用要实时更新的URL。这是我们在没有任何来源的情况下所能做的最好的了。:)


祝你好运:)

使用jquery获取它的值,然后解析URL。