Contents
The user enters data into your HTML form and clicks on the submit button. The browser generates an HTTP POST request to the URL specified in the element and passes to the server in POST parameters the values entered by the user; each parameter keyed by the “name” attribute of the HTML input element.
How to reset Joomla to start over again?
You need to get the installation folder uploaded again. And remove the configuration.php from the root. This way the system will think it needs to install again. When you are at step 1 of thewebinstaller check the “Drop Existing Tables” so existing data will be removed from you database and you will get a fresh installation. Joomla! Apprentice
What happens when there is validation error in Joomla?
Joomla compares the user-entered data with the validation you defined in your form XML file, and generates errors for fields which fail the validation. If there are validation errors then you should display those errors to the user, and redisplay the form, pre-populating the fields with the (filtered) data which the user entered previously.
How to follow the HTTP pattern in Joomla?
To follow the Joomla pattern, in the code which handles the POST we should include a HTTP GET redirect to the form URL. As that GET will then be a new HTTP request/response we must store in the user session the data to be shown when the form is redisplayed:
How do you define a form in Joomla?
Firstly, you need to define your form in XML using Joomla Standard form field types. See the component code below for an example. In basic terms, each field element in your XML file maps to an HTML (mostly “input”) element in the form, with the XML field attributes mapping to the (input) element attributes.
How are HTML and XML fields related in Joomla?
In basic terms, each field element in your XML file maps to an HTML (mostly “input”) element in the form, with the XML field attributes mapping to the (input) element attributes. Many of the possible field attributes are listed in Text form field type.