我通过jQuery的ajaxsubmit插件提交一个表单,它在查询字符串中返回一个url到我的页面,参数很少。问题是,我不能得到这些参数在php或ajax提交的成功事件。有办法得到这些参数吗?你可以在这里看到它http://videoproduction-pro.com/video/打开firebug的网络面板,它在第4个请求uploads.gdata.youtube.com一个。我提交的表单有一个带有外部URL的操作。
有谁知道这里出了什么问题吗?
的问候Himanshu Sharma
如果您希望它们在客户端,那么您可以使用gup。
//for http://www.example.com?frank=value
function gup( name )
{
name = name.replace(/['[]/,"'''[").replace(/[']]/,"''']");
var regexS = "[''?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
// = 'value'
var frank_param = gup( 'frank' );
如果你想在服务器端使用get全局
$_GET['frank']