Hi am researching on doing an application that requires me to execute different commands based on the parameter given... the problem is that the parameters build upon the last..
To start lets take an example of booking a flight to from point A to D. Here is what would happen.
First Parameter: 5
That presents you with options to choose from:
So you reply with
5*1 to show your travelling from 1
Next prompt is:
You reply with 5*1*4 which shows you have chose
Next is When are you travelling...for this you type mmddyyyy
so your next parameter looks
And probably finally,
What is your last name? Which you reply
Some specific details...when you first do the request... i.e parameter 5 alone...you get assigned a unique ID that stays with you till you finish (this part is already working).
So the help i need..... i would like to some general idea on how to;
1. Have the options of A to D come from the DB and ensure the table ID are always valid (that might not be so hard)
2. At the end (when i get thte name), i would like to break this entire parameter into variables in php
$from, $to, $datetravel,$name
This string varies but the * is always separating the different variables...is there any function to tell it make this an array based on * instead of the normal comma separator for arrays.
Any other help how to make this will help!