Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="myForm" action="add_item.php" method="post" enctype="multipart/form-data">
- Select image to upload:
- <input type="file" name="fileToUpload" id="fileToUpload">
- <input type="submit" value="Upload Image" name="submit">
- </form>
- <p id="paragraph">Suggestions:</p>
- <script>
- $('#paragraph').show();
- $.ajax
- (
- {
- url: 'add_item.php',
- type: 'POST',
- success: function () {
- $('#paragraph').show();
- $('#myForm').submit();
- }
- }
- )
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement