what do i put in the onSubmit attribute to take the uploader back to my home page?
2007-01-31
04:14:49
·
2 answers
·
asked by
tn5421
3
in
Computers & Internet
➔ Programming & Design
if ($handle->uploaded) {
$handle->file_new_name_body = 'image_resized';
$handle->image_resize = true;
$handle->image_x = 100;
$handle->image_ratio_y = true;
$handle->process('/home/user/files/');
if ($handle->processed) {
echo 'image resized';
$handle->clean();
} else {
echo 'error : ' . $handle->error;
}
}
?>
2007-01-31
04:17:36 ·
update #1
also, is the default language for events like 'onSubmit' Javascript?
2007-01-31
04:28:39 ·
update #2