On my page, I have a form to the left, and the form content echoed to the right. This includes the image, which is echoed correctly. The image is found using the folder directory, and a database name reference.
I have written a script to validate my form. On validation, the errors collected are echoed above my form.
This works, but stops my image from being displayed. Instead, the image try’s to locate the text ‘Array’.
Before validation, the correct image name is found, and the image is displayed. If I remove the validation, the image stays echoed correctly, and my form information is also updated.
Not sure why this is happening