In fact, the action= can *NOT* be JavaScript. Period.
Code:
<form action="vote.php" method="post" onsubmit="return submit_vote(this);" >
But if your function
submit_vote() still looks like it did in your first post in this thread, then it is COMPLETELY UNNECESSARY!
The browser will *AUTOMATICALLY* encode all your <form> elements for you and will automatically send them as a post-date string when the <form> is submitted.
If you are trying to do this as an AJAX call, then you are going about it all wrong. If this is the case, then show us the code for your
make_vote( ) function.