> The code that processes the form data uses a function: > > new_rating( $_POST['photo_id'], $user_id, $_POST['rating'] );
I meant the JavaScript code that submits the form. If you're not submitting it with JavaScript then the form POST will load the page at "/".