Delete Button for Drop Down Attachment Menu

Discussion forum for MOD Writers regarding MOD Development.
Locked
nicotinemilk
Registered User
Posts: 13
Joined: Sun Nov 08, 2015 3:10 pm

Delete Button for Drop Down Attachment Menu

Post by nicotinemilk »

Does anyone know how to make the delete button function for the drop-down menu? It does delete, but only the last item uploaded... I was hoping someone would know how to make it function so it would delete the attachment selected in the drop-down menu.

I searched for a few hours and tried to figure it out, but no luck.

Code: Select all

<div style="width: 420px; font-size: .5em; text-align: left;">
	ATTACHMENTS: 
		<select name="attachments">{S_INLINE_ATTACHMENT_OPTIONS}</select>

		<input type="button" accesskey="a" value="PLACE INLINE" name="attachinline" onclick="attach_form = document.forms[form_name].elements['attachments']; attach_inline(attach_form.value, attach_form.options[attach_form.selectedIndex].text);" onmouseover="helpline('a')" onmouseout="helpline('tip')" />
	
		<input type="submit" style="width:50px; font-size: .5em" name="delete_file[{???}]" value="DELETE" />

</div>
Any help is much appreciated!!!
Locked

Return to “[3.0.x] MOD Writers Discussion”