search

Home  >  Q&A  >  body text

How to allow users to upload or change images on one page and display them on another page?

How to let users upload pictures on one page and then display them on another page? The user can change the image and it will change in other pages as well. Also, I'm talking about using php/js/jquery/mysqli whatever works best. (I'm just a beginner in this field, so I would appreciate it if you use some simple language :))

Edit: Yes, I said I'm a beginner, but that doesn't mean I know nothing about coding. Also, I have seen some solutions from youtube and other stackoverflows questions but all these solutions are about uploading and displaying in the same page or not being able to change the image.

P粉298305266P粉298305266265 days ago531

reply all(1)I'll reply

  • P粉311464935

    P粉3114649352024-04-02 00:09:45

    1. Format image as Base64 string
    2. Store it in local storage
    3. Get it from local storage in another page and assign it to ID or class.

    reply
    0
  • Cancelreply