Joomla Form Submission Issue - php

I have RS form Pro installed. I created a from and when that submits i have changed the Form Action to another site where the form data is processed and then i return back to my joomla site.
Form Location : www.myjoomlasite.com/index.php
Form Properties -> Form Attributes -> Action = www.mysite.com/process.php
Return URL= www.myjoomlasite.com/index.php
What the issue is when the user submits form from www.myjoomlasite.com/index.php the Action for the Form is www.mysite.com/process.php, The process file is getting values correctly but i do not get any Form Submission values in My RS from Component. How would this process go in joomla so that i get data on both sites.

you should use appropriate controller to process the form and by using "www.mysite.com/process.php" you are making extra entry point which may be vulnerable.
And to process form in controller. Following link will actuate the desired controller.
www.mysite.com/index.php?option=com_component&controller=myController
For detail JOOMLA MVC

Related

Prestashop Module: ViewAdminOrder > Form to submit to api then echo data (little help needed)

I have created a module where a form is added to the admin view order page using the function:
public function hookDisplayAdminOrderSide($params)
The form on that page posts data to the same url:
<form method="POST" action="#">
I then use the hook "hookDisplayAdminOrderTop" to capture the post data and submit to the API (this is done when the page posts to itself and reloads). I then collect the results of the api and assign it to $result. This then allows me to echo if the submission worked etc
This all works fine.
However, I'm pretty sure this is not the correct way to do this with Prestashop. Usually with a form I would send the user to another page e.g.
<form method="POST" action="/submit.php">
Then on that page once the data has been submitted, redirect the user to a confirmation page.
Whilst what I have done is working, what is the correct way to do this with prestashop (p.s. I'm new to Prestashop, this is my 1st module) so try and keep the advice easy to follow?
I looked at the other forms on the page e.g. status update form and private note form, they all seem to post to the same url but with a slight change e.g.
index.php/sell/customers/2/set-private-note
index.php/sell/orders/2/status
index.php/sell/orders/2/send-message
I'm assuming the "set-private-note" and "status" etc are linked to some form for submission form in the PS back end.
Finally, on a second note, if you create a 2nd php file in the module root folder, what needs to be added to keep this secure e.g. so someone outside of the admin can't run it etc?
Any help would be greatly appreciated.
Thanks in advance :)

wordpress Gravity form data save to csv file on submit

I am using gravity form plugin on my WordPress website for client registration. Currently I am getting notification on email. I want to save the field data to csv/text file after hitting submit. Please someone suggest me how to do that.
Thanks :)
There has a hook gform_after_submission which executes after form submitted. You can add your own action where you will get all the form data and then you can create csv/text file there. Here is the documentation.
https://www.gravityhelp.com/documentation/article/gform_after_submission/
There has a hook gform_after_submission which executes after form submitted as You can add your own action/function where you will get all the form data and then you can create csv/text file there. Here is the documentation. https://www.gravityhelp.com/documentation/article/gform_after_submission/

Post data from Wordpress form to phpBB

I'm attempting to send data from a form on Wordpress to phpBB to create a brand new thread with all the data from the form into the thread. I've put together a simple form on Wordpress which when submitted goes to a php file that I made, and placed in the phpbb directory
here is the code that i'm using
http://pastebin.com/vHQ76DHU
Each time I submit the input data I get a white screen, and no thread is created. Any idea why?
Thanks

Codeigniter submit form written in plain HTML

I'm playing for about 2 days now and can't make this out. I'm working in codeigniter 2.1.0. and I want to submit a form that is written in HTML. I don't want to use the CI form helper.
The reason is because I'm dynamically with JavaScript adding things in the form. When a user clicks an item then it's added to the form. Now when the user clicks the submit button all the items I added should be sent in a POST request, but my POST is totally empty.
Now I noticed that the POST only gets sent when I use form_input() from the CI form_helper.
Is it possible to just submit a normal plain HTML form without using the form helper?
Is it possible to just submit a normal plain HTML form without using the form helper?
Yes. The actual submit is totally independent to CI, just ensure you use the correct action URI of the form so that the correct controller action is called by the form submit post (I assume your form method is post) request.
You do not need to use the CI form_helper for the submit button. If you mock a form with these you will see that those just generate plain HTML and do nothing magically.

cForms Plugin Post-Processing

I have a cForms II contact form set up. It works perfectly if I just want the results emailed to myself (default behavior).
I now have a custom PHP file that will take the POST data from the form and submit it to an external database for me. However, when I set the Alternative Form Action page to this PHP page, clicking the Submit button just causes the form to hang.
How exactly do I pass the form data to my own PHP file while still keeping AJAX enabled (so form validation works)?
Cheers!
Ah, I figured it out!
To do post-processing, you don't redirect the form submission to your own file.
You simply modify the my_cforms_ajax_filter($params) function in the my-functions.php file (in your cForms directory).
This function is executed after form validation and before any data processing takes place (so you can intercept the form data).

Categories