joomla2.5 - Joomla simple text area that send data via POST -
i'm developing joomla! 2.5 component.
it, username && password passed via admin area, connect webserver send info via xml.
i can show component in part of front-end without problem.
now need insert, in frontend end-user, single text-area users insert value (e.g., theyr card number [it's loyalty component]) , value must passed previous component.
atm don't need ajax call, page refreshed.
so process must textarea => insert data => press submit => show component result (page refresh, no problem).
i need develop plugin? need "extend" component? saw several topic on web didn't found show (i think) simple case my.
i need hand you, on correct way.
thank you.
in main controller file can access post & values,
where want place input: create form points component, appropriate
<form action="index.php?option=com_yourcomp" method="get" <input type="text" name="your_text_input"...
add fields need.
in controller.php of com_yourcomp able access user data
jrequest::getvar('your_text_input') or jinput prefer.
note on method="get": if want users able bookmark page or plan redirect in component. user inputs must limited few thousand chars @ most. otherwise use post, depends on needs.
Comments
Post a Comment