Hello, I have a problem with submitting a form using a link, multiple link
here is an example link i'm gonna use: <a href="#" class="commandBtn" rel="mark" title="Mark as Read">Mark as > Read</a> <a href="#" class="commandBtn" rel="remove" title="Remove to > Trash">Remove to Trash</a> > the result I expect is when the link is clicked, a hidden input value replaced with `rel` attribute on the link and then submit the form, and here is the code: $('a.commandBtn').click(function () { > $('#act').val(this.rel); > $('#pm_form').submit(); > return false; > }); but after the form submitted, when I check the $_POST['act'] variable in PHP, it's return a default value. if I disabled the submit line in code above, the value change normally. but when I check it again using Firebug with submit line enabled, the #act hidden input value change when the form is being submitted. there is some delay when setting a value, as the result, the value is updated when the form is being submitted. can anyone give me a solution for this? and sorry for my bad english *Regards,* Achmad A.