Home › Forums › Quform WordPress › Passing Data from one form to another
- This topic has 5 replies, 2 voices, and was last updated 11 years ago by dexter303.
- AuthorPosts
- January 22, 2014 at 3:03 pm #8413dexter303Participant
Hi, i followed your step on “passing data from one form to another” but the form is passing wrong data. For example in my home i have two date picker form (check in & out) and it redirects to another form after submission but its giving me a wrong data in the second form.
I did not enter my license yet (still developing), can it maybe somehow the reason.
Thanks.
January 23, 2014 at 6:36 am #8418dexter303ParticipantHi,
I need some help in here please.
January 23, 2014 at 10:52 am #8422AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 23, 2014 at 3:13 pm #8429dexter303ParticipantLinks:
function my_form_redirect($url, $form)
{
$data = array(
'checkin' => date('j,n,Y', strtotime($form->getValuePlain('iphorm_1_1'))),
'checkout' => date('j,n,Y', strtotime($form->getValuePlain('iphorm_1_2')))
);$data = array_map('rawurlencode', $data);
$url = add_query_arg($data, 'http://hotel.pandawebsolution.com/booking');
return $url;
}
add_action('iphorm_success_redirect_url_1', 'my_form_redirect', 10, 2);
- This reply was modified 11 years ago by dexter303.
January 23, 2014 at 6:06 pm #8440AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 24, 2014 at 6:31 am #8448dexter303ParticipantHi, problem solved.
Thank you very much!
Regards,
dex - AuthorPosts
- You must be logged in to reply to this topic.