Hello!
I am creating a multi-page order form that does the following:
1. Takes a client's zip code and looks up the latitude and longitude values for it from a DB table then calculates the distance from the client to service providers.
2. Once I know the distance to the service providers from the clients, I sort the $forms->data array in ascending order from closest to farthest from the client.
3. Next I want the client to choose the service provider they want (I show them 3 right now, but I will probably show them 10 when I am done).
Now I want to maintain the client data (their name, address, reason for service and service provider choice along with the array of service providers) throughtout the form. I would rather use a multi-page form for simplicity on the back end, but right now I have all the data from page 1 to page 2. Then when I go from page 2 to page 3 I lose all the service provider data and client data. I looked at the FAQ and went throught he multi-page form explanation, but I can't find the problem. I am sure it is with the session to data and data to session functions, but I need some help and clarification on that if possible.
Does any of this make sense? I think what I am trying to do is very possible. My knowledge is just lacking. Any help you can give me would be great. Attached is a backup of my form. Thanks!
Erik
I am creating a multi-page order form that does the following:
1. Takes a client's zip code and looks up the latitude and longitude values for it from a DB table then calculates the distance from the client to service providers.
2. Once I know the distance to the service providers from the clients, I sort the $forms->data array in ascending order from closest to farthest from the client.
3. Next I want the client to choose the service provider they want (I show them 3 right now, but I will probably show them 10 when I am done).
Now I want to maintain the client data (their name, address, reason for service and service provider choice along with the array of service providers) throughtout the form. I would rather use a multi-page form for simplicity on the back end, but right now I have all the data from page 1 to page 2. Then when I go from page 2 to page 3 I lose all the service provider data and client data. I looked at the FAQ and went throught he multi-page form explanation, but I can't find the problem. I am sure it is with the session to data and data to session functions, but I need some help and clarification on that if possible.
Does any of this make sense? I think what I am trying to do is very possible. My knowledge is just lacking. Any help you can give me would be great. Attached is a backup of my form. Thanks!
Erik