Hei there, I started using ajaxForm plugin, having the form statement like this:
<form id="upload" action="upload.php" methor="POST">
<!-- form inputs etc etc -->
</form>
All working fine, but if I try to change action parameter from “upload.php” to “upload.php?some_param=value” it calls just upload.php, anyone has any ideas on how can I send another param with ajaxForm ?
I looked up through the following:
<script type="text/javascript">
$('#upload').live('change',function() {
$(this).ajaxForm({
success: somefunction, // callback function
//i guess here should be another parameter to be sent to the file, but I couldn't find anything interesting on the web
});
});
</script>
try adding a hidden field inside the form with the value you want posted:
This should post the value of the hidden field when you post the form