<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Disable Delete</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Disable Delete</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 17:48:06 +0000</pubDate>

<item>
<title>yuniar on "Disable Delete"</title>
<link>https://www.machform.com/forums/topic/disable-delete#post-11355</link>
<pubDate>Mon, 07 Feb 2011 19:27:32 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11355@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Search around line 59 of your edit_entry.php and you'll find this block of code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//check for delete parameter
if(!empty($_GET[&#38;#39;delete&#38;#39;])){

	delete_entries($form_id,array($entry_id));

	$_SESSION[&#38;#39;AP_SUCCESS&#38;#39;][&#38;#39;title&#38;#39;] = &#38;#39;Entry deleted&#38;#39;;
	$_SESSION[&#38;#39;AP_SUCCESS&#38;#39;][&#38;#39;desc&#38;#39;]  = &#38;quot;Entry #{$entry_id} has been deleted.&#38;quot;;

	$ssl_suffix = get_ssl_suffix();
	header(&#38;quot;Location: http{$ssl_suffix}://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].get_dirname($_SERVER[&#38;#39;PHP_SELF&#38;#39;]).&#38;quot;/manage_entries.php?id={$form_id}&#38;quot;);
	exit;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;delete that block of code.&#60;/p&#62;
&#60;p&#62;Also search around line 196:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;li&#38;gt;&#38;lt;img src=&#38;quot;images/icons/cross_22.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot;/&#38;gt; &#38;amp;nbsp;&#38;lt;a onclick=&#38;quot;return confirm(&#38;#39;Are you sure you want to delete this entry?&#38;#39;);&#38;quot; href=&#38;quot;edit_entry.php?form_id=&#38;lt;?php echo $form_id; ?&#38;gt;&#38;#38;id=&#38;lt;?php echo $entry_id; ?&#38;gt;&#38;#38;delete=1&#38;quot; class=&#38;quot;big_dotted_link&#38;quot;&#38;gt;Delete&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;delete that block of code as well.
&#60;/p&#62;</description>
</item>
<item>
<title>raj000 on "Disable Delete"</title>
<link>https://www.machform.com/forums/topic/disable-delete#post-11354</link>
<pubDate>Sun, 06 Feb 2011 22:28:42 +0000</pubDate>
<dc:creator>raj000</dc:creator>
<guid isPermaLink="false">11354@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have made the above changes recommended to fredwin and it has worked well for quiet a long time. However, I recently realized that user can still delete the transaction if the user is on edit_entry.php .&#60;/p&#62;
&#60;p&#62;Is there a way to disable the delete option on the edit entry mode.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Disable Delete"</title>
<link>https://www.machform.com/forums/topic/disable-delete#post-10185</link>
<pubDate>Fri, 13 Aug 2010 15:34:57 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">10185@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Yes, it's possible. To do so, try to follow these steps :&#60;/p&#62;
&#60;p&#62;For &#34;manage-entries.php&#34; file, you can change these code in 409 :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div style=&#38;quot;float: left;padding-bottom: 5px;padding-left: 8px&#38;quot;&#38;gt;
&#38;lt;img src=&#38;quot;images/icons/arrow_turn_left.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot;/&#38;gt;&#38;amp;nbsp;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;into &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div style=&#38;quot;&#38;lt;?php if($form_id == 1) {echo &#38;quot;display:none;&#38;quot;;} ?&#38;gt;float: left;padding-bottom: 5px;padding-left: 8px&#38;quot;&#38;gt;
&#38;lt;img src=&#38;quot;images/icons/arrow_turn_left.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot;/&#38;gt;&#38;amp;nbsp;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and for &#34;view-entry.php&#34;, you can change these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;li&#38;gt;&#38;lt;img src=&#38;quot;images/icons/cross_22.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot;/&#38;gt; &#38;amp;nbsp;
&#38;lt;a onclick=&#38;quot;return confirm(&#38;#39;Are you sure you want to delete this entry?&#38;#39;);&#38;quot;
 href=&#38;quot;view_entry.php?form_id=
&#38;lt;?php echo $form_id; ?&#38;gt;&#38;#38;id=
&#38;lt;?php echo $entry_id; ?&#38;gt;&#38;#38;delete=1&#38;quot;
class=&#38;quot;big_dotted_link&#38;quot;&#38;gt;Delete&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;into &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if ($form_id != 1) { ?&#38;gt;
&#38;lt;li&#38;gt;&#38;lt;img src=&#38;quot;images/icons/cross_22.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot;/&#38;gt; &#38;amp;nbsp;
&#38;lt;a onclick=&#38;quot;return confirm(&#38;#39;Are you sure you want to delete this entry?&#38;#39;);&#38;quot;
 href=&#38;quot;view_entry.php?form_id=
&#38;lt;?php echo $form_id; ?&#38;gt;&#38;#38;id=
&#38;lt;?php echo $entry_id; ?&#38;gt;&#38;#38;delete=1&#38;quot;
class=&#38;quot;big_dotted_link&#38;quot;&#38;gt;Delete&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;
&#38;lt;?php } ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That would remove delete link/button for form 1. Don't forget to change the id's with yours.
&#60;/p&#62;</description>
</item>
<item>
<title>raj000 on "Disable Delete"</title>
<link>https://www.machform.com/forums/topic/disable-delete#post-10177</link>
<pubDate>Thu, 12 Aug 2010 14:30:34 +0000</pubDate>
<dc:creator>raj000</dc:creator>
<guid isPermaLink="false">10177@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Can i implement this for a specific form only. Not for all forms / entries.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>fredwin on "Disable Delete"</title>
<link>https://www.machform.com/forums/topic/disable-delete#post-2845</link>
<pubDate>Thu, 04 Sep 2008 09:08:18 +0000</pubDate>
<dc:creator>fredwin</dc:creator>
<guid isPermaLink="false">2845@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Excellent.  That works nicely.  I will try and find a tool to let me delete the entry direct from the SQL database.  I think that one I have posted before can do that.&#60;/p&#62;
&#60;p&#62;Will try and remember to post an update when I work it out.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Disable Delete"</title>
<link>https://www.machform.com/forums/topic/disable-delete#post-2832</link>
<pubDate>Wed, 03 Sep 2008 14:24:11 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">2832@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi...&#60;/p&#62;
&#60;p&#62;You can hide/remove delete entries by make modification in &#34;view-entry.php&#34; and &#34;manage_entries.php&#34; &#60;/p&#62;
&#60;p&#62;in view-entry.php files you can edit line 214 , from &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;li&#38;gt;&#38;lt;img src=&#38;quot;images/icons/cross_22.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot;/&#38;gt; &#38;amp;nbsp;
&#38;lt;a onclick=&#38;quot;return confirm(&#38;#39;Are you sure you want to delete this entry?&#38;#39;);&#38;quot;
 href=&#38;quot;view_entry.php?form_id=
&#38;lt;?php echo $form_id; ?&#38;gt;&#38;#38;id=
&#38;lt;?php echo $entry_id; ?&#38;gt;&#38;#38;delete=1&#38;quot;
class=&#38;quot;big_dotted_link&#38;quot;&#38;gt;Delete&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!--&#38;lt;li&#38;gt;&#38;lt;img src=&#38;quot;images/icons/cross_22.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot;/&#38;gt; &#38;amp;nbsp;
&#38;lt;a onclick=&#38;quot;return confirm(&#38;#39;Are you sure you want to delete this entry?&#38;#39;);&#38;quot;
 href=&#38;quot;view_entry.php?form_id=
&#38;lt;?php echo $form_id; ?&#38;gt;&#38;#38;id=
&#38;lt;?php echo $entry_id; ?&#38;gt;&#38;#38;delete=1&#38;quot;
class=&#38;quot;big_dotted_link&#38;quot;&#38;gt;Delete&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;--&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and in manage-entries.php you can edit in line 409 with adding style &#34;display:none&#34; properties&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div style=&#38;quot; display:none;float: left;padding-bottom: 5px;padding-left: 8px&#38;quot;&#38;gt;
&#38;lt;img src=&#38;quot;images/icons/arrow_turn_left.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot;/&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Since machform only use single user I think it's not possible to have different password for now.&#60;br /&#62;
I hope this can help you ...
&#60;/p&#62;</description>
</item>
<item>
<title>fredwin on "Disable Delete"</title>
<link>https://www.machform.com/forums/topic/disable-delete#post-2831</link>
<pubDate>Wed, 03 Sep 2008 13:50:54 +0000</pubDate>
<dc:creator>fredwin</dc:creator>
<guid isPermaLink="false">2831@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yuniar&#60;br /&#62;
Is it possible to disable the delete file option, or even to have a different password required to delete the entries?&#60;/p&#62;
&#60;p&#62;I am looking at this as we have had one of our admin guys who acidentally deleted an entry, but didn't tell anyone and it was a pretty important entry.&#60;/p&#62;
&#60;p&#62;Fred
&#60;/p&#62;</description>
</item>

</channel>
</rss>
