How to save datas from custom form in joomla article - html

Hi I have created custom form in joomla article with html.When i click the submit button i need to validate the form and also to call the controller of the com_content.From the controller i need to save the form field datas to mysql database through model.How to do this.Please guide me.
<form id="slideshow-form" class="form-validate" method="post" name="adminForm">
Name
Your mobile number
Your email address
What is your city of residence?

for custom form it's better to use one of joomla form builder extensions like Chronoform

Related

Unable to submit the form on laravel6

while submit the form pages using get method, does not send to the controller but I print the link on browsers to get the results, I used gates and policies on web routes, i used pagination of forms as below links, two pages contains
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_form_steps
Please use your form method POST request ,
like this :- form method="POST" action="{{ route('yourSubmitingRoute') }}"

HTML Form arguments to angular page

I have a static HTML page with a form on it asking for very basic information (Name, email).
This form will help pre-fill 2 fields of the registration process of my angular app.
the problem is that the URL that is being generated when submitting the form is
http://server/?name=xxx&email=xxx#yyy.com/#/account/create/infos
What my angular app is expecting is :
http://server/#/account/create/infos/?name=xxx&email=xxx#yyy.com
any idea how I can achieve that ?
thanks a lot
you can try setup your form to method post
<form method="post">...
Then in controller you get post-param and process it

Take all user entered data from one jsp page to another JSP page and after user confirmation submit it from the first jsp page

Here scenario is : user will enter the data in my main jsp page.When user hit on submit button i want to show all the data to user in another jsp page and want to take confirmation like "This is the data you entered please click on confirm button to submit data otherwise click cancel" . can anybody help me here . How we can take all the data entered in main jsp page and disply it on another one?
Create a form with all the fields you require. Submit that form. set the action to the target jsp.
In the request object of target jsp you will get all the data you entered.
You can specify the action like this form id="login-form" action="Your action jsp url"
There are three options:
store the values in the session. Then read it from there on the 2nd page
send all the values as GET parameters (in case of redirect) or request attributes (in case of page forward)
use a flash scope (if you are using a framework that supports it)

How to add image upload tag in Struts2 jquery grid plugin

I am using struts2 jquery Grid plugin for the admin panel functionality for website.
In this plugin when i click add button it populate form using jquery dialog ui
So here i want to show my form that accepts file uploading & also i have written validation xml file for this form so i want this dialog should show validation errrors if user forgets to enter some information.
Thanks in advance.
You can try to use edittype:'file'. For the validation you can use editrules with custom: true and define your custom validation in custom_func.

Run asp script and return to original page

I've been looking for a while but i haven't been able to do this. I'm submitting a form to a asp script but i want to know if it's possible to either just run the script from the original page or if it's possible to make it return to the original page.
Is there a simple solution to this problem?
Two ways immediately spring to mind:
1) Convert your form to an ASP page. If the form is just HTML/JavaScript, simply change the file name to filename.asp. Then in your form tags call the filename, e.g.
<form name="form1" action="filename.asp" method="post">
At the top of filename.asp (or better still, use an include file) insert your script:
<% if request.form.count > 0 then
...
end if %>
When the user submits the form they will see the original form but you can display feedback to the user or hide the form on submit.
2) Make sure your ASP script doesn't print anything to the page and at the end of the script add
response.redirect("original-page")