Active
Project:
Popups API (Ajax Dialogs) [D7]
Version:
6.x-2.0-alpha6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2011 at 07:19 UTC
Updated:
25 Jan 2011 at 09:46 UTC
Could someone explain how to pass data from form in popup page to form in original page?
thank you.
Comments
Comment #1
nagarajanl commentedyou can use a simple variabel_get / set operations or try with the $form_state['storage'] or try with sessions etc...
Comment #2
loveonflower commentedHi nagarajanl, thanks for the reply.
do you have any snippet of the codes on how to do it?
I really have no idea how to implement it.
Comment #3
nagarajanl commentedWhile submitting your Pop up API form just add the required data that u need to be passed to the main form using variable_set function (http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/variab...). Then after the pop up closed you can get the values using variable_get in the main form. After reusing that correspoding form posted values make sure to delete that correspoding values using variable_del. If you feel this seems complicated then serialize the form values and use it in sessions by $_SESSION.