Help with re-arranging an Upload Form

In this PHP web script that I’m using you can upload videos and upload images, and then search them to view. The ‘image_upload_form’ requires that you put uploaded ‘images’ in ‘Albums’.
I’ve attached the page code. The first part is about Selecting or Creating an Album. The 2nd part (shown as Step 2 in the code) is where you choose an image and upload, then the next thing you see is adding Title, Description & Tags for the uploaded Image.
I’d like help modifying the file, so that anything to do with Albums is removed. And then have the Title, Description, Tags come first, on the page, then choose Image, then Upload just Image, Title, Description and Tags (nothing about Albums). Would this type of re-arranging/mod be easy?
inner_upload_image.html (12.0 KB)

thats just an HTML form, so where is the problem?

1 Like

No way to know until you try. And a lot depends on what tools you use.

I think the biggest help would be having a text editor / IDE that has features like Find, Count, Highlight.

You could start by simply hacking out what you want to remove - But …
If there is any JavaScript or CSS that relies on the DOM being a certain way with certain things present you could be in for some problems.

I’d first check the JavaScript to see what it was both getting from and doing with DOM elements.
Then I’d check the CSS to see if any selectors included what I was planning to remove.

Since you are interested in changing the form, you will also need to check / change server-side code too.

Then it’s a matter of

saving backup copies and cutting out the HTML you want removed and any orphaned Javascript / CSS
Testing to make sure everything still works OK
Then rearranging the HTML to the design you want.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.