I'm pretty new at this and I'm working through building a component from scratch. I have gone through the "HelloWorld" tutorials already. I'm stuck on this strange thing:
The default view for the "site" side of my component has a form on it. A person submits the form and it adds a database entry and an e-mail is sent. This works perfectly.
The second part is where someone gets the e-mail and it posts to a different view which has a form on it that they update the same database record. It is essentially an edit of the record in the same table, but most of the fields are set to read only so they can't edit those parts. Only update one field.
So, the initial call (that is working) is:
index.php?option=com_mycomp
while the second form is: index.php?option=com_mycomp&view=reqdeny&layout=edit&reqid=xx (id in the db)
Now the <form> tag is set to post to: index.php?option=com_mycomp&view=reqdeny&layout=edit&reqid=xx
But what I am finding is when someone submits, it is executing the validation routines on the original first form and failing validation. My controller file for this view "reqdeny" has no validation listed in it, though. The second form has no validation at all. It is as if it's posting to the original form instead and trying to save data that way.
How do I get it to post to the other view? Or am I thinking of this completely the wrong way?