posto anche il codice che ho usato per il php
Codice PHP:
<?php session_start(); ?>
<html>

<head>

    <script type="text/javascript" src="jquery.js"></script>

    <script type="text/javascript" src="jquery.rotate.js"></script>

    <script type="text/javascript">

        function rotate(angolo){$('#image').rotateRight(parseInt(<?php echo $_POST['angolo'];?>));}

    </script>

</head>
<body>
    [img]bartimpson.jpg[/img]
    <form name='pad' action='' method='post'>

        Gradi: <input type='text' name='angolo' /> 

        
<input type='submit' value='Ruota' />

    </form>
</body>
</html>