There is ajax script
<script>
$(document).ready(function() {
// add click event to link
$("#refresh").click(function() {
// pass the value of the new password
$("#Container").load("10digpassgen.php");
return false;
});
});
</script>
How Can I put output from #Container to php variable? I want this generated password put into database ( I know how to do it ).
You can store return output in the hidden field and when the form submit you can get that value in the post or get.