我期待着从人口信息中提取数据,并通过员额传递到URL,然后将用户转向新的URL。
If fname and email are there I would like to post fname and email to a URL.
How can I do this?
<script type="text/javascript">
$(document).ready(function() {
$.msgbox("<p><b>Grocery Coupons Newsletter</b></p><p>Save $$$ With Coupons and Samples in your E-Mail</p>", {
type : "prompt",
inputs : [
{type: "text", label: "Insert your First Name:", value: "", required: true},
{type: "text", label: "Insert your Email:", required: true}
],
buttons : [
{type: "submit", value: "OK"},
{type: "cancel", value: "Exit"}
]
}, function(fname, email) {
if (fname) {
window.location = "http://www.google.com/";
}
});
});
</script>