Welcome Guest, Not a member yet? Register   Sign In
Posting a form that is included in a page
#11

[eluser]JamieBarton[/eluser]
Hi again,

Also forgot to ask.

Say I have a form to create a message, the URL being /messages/new

Instead of having two controllers, one to handle including the view, and one to post the actual content, such as /messages/create

How would I go about putting it all in one controller? Like if the form is submitted ... Do this, if not, show this etc. I'm probably just being stupid here, as it seems very easy and could do it in Procedural PHP fine.


Thanks for your help.


Messages In This Thread
Posting a form that is included in a page - by El Forum - 11-16-2009, 06:50 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 07:36 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 07:45 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:05 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:12 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:22 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:37 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:41 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:45 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 09:35 AM
Posting a form that is included in a page - by El Forum - 11-24-2009, 10:24 AM
Posting a form that is included in a page - by El Forum - 11-24-2009, 10:36 AM
Posting a form that is included in a page - by El Forum - 11-24-2009, 10:37 AM
Posting a form that is included in a page - by El Forum - 12-10-2009, 06:46 PM
Posting a form that is included in a page - by El Forum - 05-22-2012, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB