Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Can someone please help me. I'm trying to find a piece of code that will allow the user to submit the name of a picture and then that picture is displayed on the screen. Every time the user changes the picture name in the form, the picture changes.
e.g. user input "dog" - file dog.jpg is displayed. Essentially the form changes the text inside the IMG SRC= tag.
My friend told me that it can't be done, but I'm sure it must be possible. Can anyone help?