Can you find anything wrong with the following CODE? It currently does not return to the original page. You are supposed to pull up FILENAME.php and when you vote from that page it just returns you back to it... ANy suggestions?

DO i need the full path to the php file? I dunno..
PHP Code:
----------
function 
submitit() {
     if (
document.rateform.rate.value=="x"){
        
alert ("You did not make a Rating");
     }else {
       
document.rateform.submit(); } }
-----------
 
   <
form action="filename.php?avroomid=1" method="post" name="rateform">
   <
select name="rate" class="text">
   <
option value="x" selected>Rate Tune!</option>
   <
option value="5">Excellent</option>
   <
option value="4">Good</option>
   <
option value="3">Fair</option>
   <
option value="2">Poor</option>
   <
option value="1">Rubish</option>
   </
select>
  <
input type="hidden" name="action" value="vote"
  <
input type="button" value="Rate!" style="font-size:8px" onclick="javascript:submitit()">
   <
input type="hidden" name="userid" value="2">
   </
form