I have a form like this;
<form action="out.php" method="post">
<input type="hidden" name="a" value="a" />
<input type="hidden" name="b" value="b" />
<input type="hidden" name="c" value="c" />
<input type="hidden" name="d" value="d" />
<input type="hidden" name="e" maxlength="60" value="e" />
<input type="hidden" name="f" value="f" />
<input type="submit" value="Create & Send">
</form>
this form can not be seen by users. They just see a submit button like "Create Label & Send To Customer" . But they need to input Customer's eMail Address. So i have a js code the submit button trigger it. And it asks the email address. The JS code:
$('#dialog_prompt').click(function(){
$.prompt("What is customer's email?","",
function(value){
$.msg("So, you like '"+value+"'?");
},
function(){
$.msg("You clicked cancel!");
});
});
So my problem is; when the user submit the button and input the customer's email and hit the ok, JS must send the values from the form & email address to the "out.php".
So how can I send form data via JS?