Php to return on main page after script is over
I am uploading an image by putting an upload button (which has php script-upload.php) under the image. When the upload button is pressed, image gets uploaded but the page moves to upload.php. I want that image goes away on the main page and it should show that image has been uploaded instead of showing upload.php. Please help me. 
Php to return on main page after script is over
===

I am uploading an image by putting an upload button (which has php script-upload.php) under the image. When the upload button is pressed, image gets uploaded but the page moves to upload.php. I want that image goes away on the main page and it should show that image has been uploaded instead of showing upload.php. Please help me. 