| | |
upload
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
hi
i want to upload photos.
i have a upload button when the upload button is clicked a window will pop out and uploading image option are there.
when the close window buttton is clicked in the pop up,i want to close the pop up and the path should be displayed as a link in the parent window
this is my code.where uploading is working but i am not able to close the window when close button is clicked and dont know how to display the link in the parent page......
child window
parent window
i want to upload photos.
i have a upload button when the upload button is clicked a window will pop out and uploading image option are there.
when the close window buttton is clicked in the pop up,i want to close the pop up and the path should be displayed as a link in the parent window
this is my code.where uploading is working but i am not able to close the window when close button is clicked and dont know how to display the link in the parent page......
child window
PHP Syntax (Toggle Plain Text)
<? echo '<script language="javascript">'; echo 'function updateparent(path,button) {'; echo 'window.opener.document.stylist_reg_details.'.$_REQUEST['textbox'].".value=path;"; echo 'var targ="link_'.$_REQUEST['textbox'].'";var obj_styphoto = window.opener.document.getElementById("targ");'; echo 'alert ("Target = " + targ);'; echo 'alert (obj_styphoto);'; echo 'obj_styphoto.href=path; obj_styphoto.style.display = "block";'; echo 'window.close();'; echo '}</script>'; ?>
PHP Syntax (Toggle Plain Text)
workphoto1:<input type="text" readonly="readonly" name="workphoto1" class="story" size="35" /> <INPUT type="button" value="Upload" onClick="alert('we support only JPG format');window.open('uploadpicture.php?stylistid=<?echo $stylistid;?>&textbox=workphoto1','mywindow','width=500,height=300')" />
•
•
•
•
when the close window buttton is clicked in the pop up,i want to close the pop up and the path should be displayed as a link in the parent window
Interested in Surfing? Check out World Surf Engine.
![]() |
Similar Threads
- Can't upload pictures (Windows NT / 2000 / XP)
- how to Upload files using Linux bash Shell scripting and CGI (Shell Scripting)
- want to upload images to access db from ColdFusion (ColdFusion)
- ie freezes when trying to upload photo (Web Browsers)
- "Upload active" searchbar Malware (Viruses, Spyware and other Nasties)
- Word.doc upload using JSP (Java)
- how to upload Word doc with columns & graphics? (Graphics and Multimedia)
- Limiting\Disabling Upload (Networking Hardware Configuration)
Other Threads in the PHP Forum
- Previous Thread: image resize script errors
- Next Thread: Help!!!! open source SMS Shopping Project
| Thread Tools | Search this Thread |
apache api array basic beginner binary body broken cakephp class cms code computing confirm cron curl customizableitems database date date/time delete display dynamic echo email error file files filter folder form forms forum function functions gc_maxlifetime global google headmethod href htaccess html iframe image include ip javascript joomla limit link list login malfunction memmory memory menu mlm msqli_multi_query multiple mycodeisbad mysql navigation oop parameter parsing paypal pdf php phpmysql query question random recourse recursion regex script search select seo server sessions snippet source space sql static system table thesishelp trouble tutorial update upload url variable video web webdesign xml youtube





