I have been using Joomla for the last couple weeks and it seems straightforward so far and I understand the code in examples. I've successfully created a custom module that displays on the front end.
Now I am trying to develop a custom component which is a lot harder. Basically it takes a form from the front end and I want to do something with that sent data on the backend. I will probable save to the database but for the moment I just want to retrieve that data and perhaps save the data to a text file.
Say I have a form like this on the front end view which is created by my component...
<form action="<?php echo JRoute::_('index.php?option=com_example&task=file.submit'); ?>" enctype="multipart/form-data" method="post"> <input type="file" name="jform1[test]" /> <input type="file" name="jform1[test]" /> <input type="submit" value="submit" /> </form>
...where does this form post to? Will it go to the site controller or admin controller?
I need to the data to go to the admin controller as there are options in there that are needed later to do something with the data (I plan to use cURL and send the data off somewhere else)