You are here: File upload action to iframe « PHP Programming Language « IT news, forums, messages
File upload action to iframe

Posted by Manish on 11/14/06 04:32

I have tried uploading a file using the code as

//--------------------------------------------------------
// Main File

<form action="importaction.php" enctype="multipart/form-data"
method="post" target="targetupload">

<input type="file" name="fileimpcsv" id="fileimpcsv">

<input type="submit" name="subfileimpcsv" id="subfileimpcsv"
value="Import">

</form>

<iframe id='targetupload' name='targetupload' scrolling="auto"
frameborder="0" height="0"
src='ifimportaction.php'></iframe>

//--------------------------------------------------------

In the file ifimportaction.php, there is the code to get the POST,
FILES vars and upload the file.

And show the javascript alert after the file is uploaded. (Alert
message at the end of the file ifimportaction.php)

It's working perfectly for Firefox (tested in v2.0). But for IE (v6),
it's not working.

After I click the submit button, it's stay there only. If I remove all
the code from the ifimportaction.php and only print time(), (after
changing targetupload height to say 50), there is no change in the
values being displayed i.e., action is not going to that frame.

How can I upload the file in IE, so that page is not reloaded.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация