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
Related
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/
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
I'm transitioning from CodeIgniter to WordPress. Still trying to wrap my head around WordPress plugin development... seems pretty easy, but one thing I can't figure out is: where do I send the form data? In CodeIgniter, you could simply create another method in the controller and point the form action there, but it seems WordPress plugins are a little different.
Depends on how your plugin is generating the form. Typically you do it by registering a shortcode, something like [my_form] that you can insert into a page or post where you want the form to appear.
In your plugin code the form action can be blank -- simply reload the same Wordpress page. Your form info. will be in the global $_POST and your plugin can then process the data.
So your plugin shortcode function would have something like:
if(isset($_POST['my_plugin_form_field'])){
/* code to process the form info and generate a message on screen
}
else{
/* the form hasn't been submitted yet so here is the code to display it
}
When you use a multi-page form built with Gravity Forms data must be saved in somewhere. I looked in sessions and database but I have not found.
Any suggestion is very welcome.
Data is passed between pages populating all input elements. Only the current page is showed and the rest are hidden! Database is updated only when last page is submitted.
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).