Good idea or Bad idea? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Good idea or Bad idea? (/showthread.php?tid=22773) |
Good idea or Bad idea? - El Forum - 09-19-2009 [eluser]asmedrano[/eluser] I might be over thinking this. Simple form...' mysite/form' ----> submits to ---- >'mysite/processform' (w/e) Whats the best way to keep people from stumbling to that page mysite/processform should they have that inclination? What do you guys/gals think about this: Code: function processform () ? Any thoughts? Good idea or Bad idea? - El Forum - 09-19-2009 [eluser]Damien K.[/eluser] If you're concerned about people accessing 'processform', you may want to submit the form to itself and then forward off to '_processform' for processing (note the rename of the function with an underscore to prevent access). Good idea or Bad idea? - El Forum - 09-19-2009 [eluser]asmedrano[/eluser] Interesting... got a quick sample? Im curious to see if anyones got a CI best practice? Either way, thanks for the reply! Good idea or Bad idea? - El Forum - 09-19-2009 [eluser]Damien K.[/eluser] Code: function form() Good idea or Bad idea? - El Forum - 09-20-2009 [eluser]BrianDHall[/eluser] I just do something like this, specific to one of the required form fields: Code: if ($this->input->post('login') Or sometimes like Damien's example, depending on how I think I may wish to use the form. The way any page is set there should never be a worry that someone will find it who shouldn't - there is no such thing as a truly hidden page on the internet |