<form id="save_profile_photo" action="crop.php" method="post">
<input type="hidden" name="x1" id="x1" value="" />
<input type="hidden" name="y1" id="y1" value="" />
<input type="hidden" name="x2" id="x2" value="" />
<input type="hidden" name="y2" id="y2" value="" />
<input type="submit" value="Guardar">
</form>
He intentado esto, pero me devuelve error.
crop.php
<?php
$uno = 'images/imgdos.jpg';
$dos = 'images/img.jpg';
$x1 = $_POST['x1'];
$y1 = $_POST['y1'];
$x2 = $_POST['x2'];
$y2 = $_POST['y2'];
$width1 = '120';
$height1 = '120';
$width2 = '120';
$height2 = '120';
imagecopyresampled ( $dos, $uno, $x2, $y2, $x1, $y1, $width2, $height2, $width1, $height1 )
?>
Alguna idea. Gracias a todos.
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png)