Welcome Guest, Not a member yet? Register   Sign In
[solved] controller
#1

[eluser]superfake123[/eluser]
newb here,

I've created a controller that will take in the post data from a contact form and then send out an e-mail. What is the correct method to make sure this controller isn't accessed via a web browers etc? I only want the controller to be used via the contact form? Or do I just need to make sure there is post data, if not then return null?




Also I'm using ajax to send this so there will be no page refresh etc. How can I write to a log file somewhere in case there is an issue with sending the e-mail? Is that a codeigniter function somewhere?

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB