name="category['frequency']". This info gets added to a hidden field on the second form and combined with a bunch of new elements with attributes such as name="category['month']" and name="category['amount']".Assuming there are multiple categories on the first and the second forms, how do I access the specific values for each element? I know I can use foreach to loop through the $_POST array. I just can't seem to access the next level associative array. Any code examples would be appreciated.
TIA, Doug.
Please will you turn on Debug for the second form and post the resulting $_POST array here so that we can see exactly what is being returned?
Bob
I am actually going to hand code the backside of form two as it will be selecting the group of questions based on the first form. My problem is that my switch is expecting a certain frequency (never, once, monthly, or other). However, print_r of the $_POST array yields the following code
Array ( [car_payment] => Array ( [frequency] => once ) [Submit] => submit )My switch needs to read that frequency value ("once" in this particular example) but I don't know how to get to it.Hope you can help.
Try
<?php
$car_payment = JRequest::getVar('car_payment', '', 'post');
$frequency = $car_payment['frequency'];
. . .Bob
$businessname = "TheName"it will pass from Form 1 and I have made it place the value into another text box on forum 2.
But I am trying to make it so whatever the user enters into the text box, will go over:
<?php
$session =& JFactory::getSession();
$businessname = JRequest::getVar('business_name','','post');
$session->set('businessname', $businessname);
?>
This is what the debug is giving me:
1.Form passed first SPAM check OK
2.Form passed the submissions limit (if enabled) OK
3.Form passed the Image verification (if enabled) OK
4.Form passed the server side validation (if enabled) OK
5.$_POST Array: Array ( [business_name] => 4444444 [hidden_3] => [button_2] => Contine [6398c8b53cd4ebbde2581158afc04093] => 1 [1cf1] => 46ba27ecac4d58d79118026313e41800 [chronoformname] => Form_Start )
6.$_FILES Array: Array ( )
7.Form passed the plugins step (if enabled) OK
8.Debug End
9.Redirect link set, click to test
So I am sure im doing something wrong, as to why its not passing over the value, just not sure what ?
Any ideas ??
Then I remember all the other modules I have purchased, and the promise of good support, but how I had been let down, so I had a client that I need to adapted to, and thought I will post before spending their money, to see if the above issue could be resolved.
I have posted 3 times, explaining, though maybe not very well, and showing my issue over the past 3 days. How many replies have I had.... Z E R O !
I need help with one element, which to my client is an important one, and I am more than ready to learn, and here I ask for help, 3 times, but nothing. I PM because I have a deadline.... nothing...
Last thing I can afford to is alienate myself from the forums community or it's admin, but how is this speedy support? I am posting in the wrong place, is there another way, do I need to pay before I get the speedy support? Can anyone enlighten me on this?
Mainly because when I read your psot I don't really understand what you are asking so leave it to come back to later.
You don't say where you are putting the code or where you are testing to see if it is in the session data or not. And I'm not clear how the two forms are linked together.
Bob
PS It makes no difference if you have subscribed or not - I can’t tell when I post here. Posting short clear questions in the forum is the best way to get answers. PMs and emails get answered after forum posts (unless there is a good reason for a private message). Double posting tends not to help.
Regarding the code you've posted in this thread:
The code for storing the data in the session storage looks well enough. ChronoForms, however, is unaware of this action, and it is your task to later retrieve that stored data for whatever actions it is needed. As such, you will not see any traces of it in the standard Debug output.
The MultiPage CFPlugin (if you are using this, I see you are talking of two different forms) does also use the Session storage inbetween form steps, but uses it's own namespace.
Regarding your other threads; I understand you had one of them solved within an hour yourself (Error on Saving Data). As for your other thread, I've just gotten 'round to that one.
/Fredrik
