Upload query

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Sharad Mittal
Forum Newbie
Posts: 1
Joined: Sun Sep 15, 2002 4:22 am

Upload query

Post by Sharad Mittal »

Hi

I have a question about submit button in an upload script. when people press the submit button to upload a file using PHP script , the server begins to upload the file. Now, if the file is heavy (4-5 MB), then it seems as if the server is hung as it takes a lot of time but this is not the case .......the file is actually being uploaded.......so is there i way by which a pop up box will open after the submit button is clicked which will say "Uploading".....till the file is uploaded........please help

sharad
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

I you want the pop up screen to pop up after user clicking the submit button use:-

Code: Select all

<form onSubmit="window.open('file','','options')">
<input type="file" name="file" value="">
</form>
Post Reply