Hi all,
I have image upload and its processing php code in the same page, and it looks like below.
<form name=UpForm enctype="multipart/form-data" method=post>
<input type="file" name="item_img" size="50">
<input type=BUTTON value="Upload it" onclick="JPG_Only(this.form, this.form.item_img.value)">
</form>
<?php
foreach($_POST as $key => $value) $$key = trim($value);
if (isset($item_img)) {
process image here.
}
?>
form has javascript function onclick to filter non-JPG file extension.
However, It doesn't upload file.
So, can't they reside in the same file ?
Thank you.
Jake.