I have looked all over the Internet but cannot find the code to do this. The user uploads an image then clicks on a Submit button which brings them to add.php. After they click the Submit button, I want a loading screen to take up the whole page with an animted gif and a message saying “your image is uploading” for about 5 seconds. Then, I want it to go ahead to add.php. Here is the code for the button:
[php]
echo “<form enctype=“multipart/form-data” action=“add.php” method=“POST”>”;
echo "Please upload a photo and then click Submit:
“;
echo " <input type=“file” name=“photo”>
”;
echo " <input type=“submit” value=“Submit” “>”;
echo " ";
[/php]
Does anyone have the code to do this?