[eluser]AlphaGirl[/eluser]
Hi,
i'm organizing a form where the user can build a Newsletter, title, message, and uploading a file.
Ok, the problem is not about the code to get it done but i'd like to keep the structure clean, clear etc..
How can i swich from
Code:
action="controller/preview"
to
Code:
action="controller/send"
based on the button the user would click on?
I mean, i don't wanna send values to another function
Code:
eg: controller/check
that would switch between them, coz after that i'd have a longer slug on the url:
Code:
www.mysite/newsletter/check/preview
or
Code:
www.mysite/newsletter/check/send
but also because i wanna keep code as
separate, readable, easy as possible..
Hope i'm not confusing you.. :-)