| | |
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 beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql navigation number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white xml youtube





