please can anyone help me sort this prob out. i have this sample which is use to upload image and load it at the same time. but it keeps given me error message. "Notice: Undefined index: image in c:\inetpub\wwwroot\glis\finance\TEST\upload.php on line 10
Notice: Undefined index: image in c:\inetpub\wwwroot\glis\finance\TEST\upload.php on line 11
Notice: Undefined index: image in c:\inetpub\wwwroot\glis\finance\TEST\upload.php on line 14 " here are the code below. there are three files, one imade_upload.php, upload.php and resize.php
<?php /******************************************************************************************************************************** PHPAsks.com Developed by Asif Khalyani Email : asif.khalyani@msn.com
<?php /******************************************************************************************************************************** PHPAsks.com Developed by Asif Khalyani Email : asif.khalyani@msn.com
var oNewP = par.createElement('span'); var oText = par.createTextNode(\" \"); oNewP.appendChild(oText); imgdiv.appendChild(oNewP);
</script></head> </html> <?php exit(); } ?><html><head> <script language=\"javascript\"> function upload(){ // hide old iframe var par = window.parent.document; var num = par.getElementsByTagName('iframe').length - 1; var iframe = par.getElementsByTagName('iframe')[num]; iframe.className = 'hidden';
// create new iframe var new_iframe = par.createElement('iframe'); new_iframe.src = 'upload.php'; new_iframe.frameBorder = '0'; par.getElementById('iframe').appendChild(new_iframe);
// add image progress var images = par.getElementById('images1'); var new_div = par.createElement('div'); var new_img = par.createElement('img'); new_img.src = '/images/indicator.gif'; new_img.className = 'load'; new_div.appendChild(new_img);
<?php /******************************************************************************************************************************** PHPAsks.com Developed by Asif Khalyani Email : asif.khalyani@msn.com
Notice: Undefined index: image in c:\inetpub\wwwroot\glis\finance\TEST\upload.php on line 11
Notice: Undefined index: image in c:\inetpub\wwwroot\glis\finance\TEST\upload.php on line 14
"
here are the code below. there are three files, one imade_upload.php, upload.php and resize.php