Forums

multiple image upload database issue

tgribble 01 Aug, 2011
hello everyone

i have an on submit event that is working well

it grabs the image and stores it on the server, keeping the file location record in the sql database.

what i would like to do is to have the ability to submit multiple images, and when the preview refreshes, display the link to all the images show.
at the moment, the code to display the image ( as a custom code )in the preview is:

<a href="/components/com_chronoforms/uploads/member_data/{xxxx_num}/{mem_form_img}" target="blank">
<img src="/components/com_chronoforms/uploads/member_data/{xxxx_num}/{mem_form_img}" width="200" height="150" border="5" alt="NO CURRENT IMAGE ON FILE OR FILE IS A PDF" /></a>
<p>
<b>
File Name on Server :
</b>
<a href="/components/com_chronoforms/uploads/member_data/{xxxx_num}/{mem_form_img}" target="blank">

{mem_form_img}

</a>


in the end, i would like the refreshed preview to display either the images or just links to the images.
the problem i have is i dont know how to add the new file location to the sql database and not just replace the current value.

thanks
This topic is locked and no more replies can be posted.