<b>Functionality:</b>
I have a site that has a form to the left, and the information echoed to the right. This basically:
------------------------------------------------------------------
|
Form | Content Echoed
|
|
|
|
|
|
The content echoed is pre-set. This content contains a banner image and some banner text. This was done adding a row to my banner table in mysql.
The form retrieves this information and allows the user to update the banner image, or change the banner text. The form consists of a file upload box, and a text area.
The form sends the new image reference, and the banner text to the database table. This overwrites the old data, and makes the echoed information update as well. The information is echoed so the user can preview the data and image.
<b>Problem:</b>
I also have validation set up for the image name, image size, and image type.
These work but make my echoed image disappear, replacing it with a broken image sign.
Instead of getting the correct image name, it seems to get the text 'Array'. No idea what to do. I need the validation in place, but I also want my old image to stay echoed when one of these errors occur.