Welcome Guest, Not a member yet? Register   Sign In
Need Help with Delete email Function
#1

[eluser]vincej[/eluser]
Hi - I'm sending out standard emails with the CI email class - it all works very well. My emails have a link at the bottom which allows the customer to un-subscribe. The link calls a delete()function within a controller which in turn talks to the DB via a model. All Good. Everything works.

The only problem is that when it calls the delete()function, the customer web browser opens a blank page ! Is it becasue it is inside a CI_ Controller ?? What should I be doing in order that it deletes quietly in the background without opening a page in the browser ??

Many thanks for all your ideas !


web page link: (for some curious reason this site will not reproduce: '$list['id']' in the link below ! )

Code:
<a href='". site_url()."/admin/customer/delete/".$list['>Unsubscribe and De-activate Account </a>

Controller:

Code:
class Customer extends CI_Controller {
public function Customer(){
   parent::__construct();
  }

function delete($id){
$this->MCustomer->deletecustomer($id);}



Messages In This Thread
Need Help with Delete email Function - by El Forum - 02-15-2012, 11:10 AM
Need Help with Delete email Function - by El Forum - 02-15-2012, 11:23 AM
Need Help with Delete email Function - by El Forum - 02-15-2012, 11:29 AM
Need Help with Delete email Function - by El Forum - 02-15-2012, 12:08 PM
Need Help with Delete email Function - by El Forum - 02-15-2012, 12:16 PM
Need Help with Delete email Function - by El Forum - 02-16-2012, 12:24 AM
Need Help with Delete email Function - by El Forum - 02-16-2012, 12:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB