[ASK] Session

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Grandong
Forum Commoner
Posts: 65
Joined: Thu Jul 03, 2014 12:35 pm
Location: Indonesian
Contact:

[ASK] Session

Post by Grandong »

i have 2 data from API.

data1= one way
data2= round trip

how to : if user select data1, data1 send to cart then user select data2 then go to cart

how i can do it ?
Newbie The Passion for Learning
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: [ASK] Session

Post by Celauran »

A little more detail, please? I can't see someone selecting one way and round trip for the same flight; it doesn't make any sense. If they've added one-way, then select round trip, you want to replace the existing one-way? Is that what you're asking or am I way off base?
User avatar
Grandong
Forum Commoner
Posts: 65
Joined: Thu Jul 03, 2014 12:35 pm
Location: Indonesian
Contact:

Re: [ASK] Session

Post by Grandong »

Celauran wrote:A little more detail, please? I can't see someone selecting one way and round trip for the same flight; it doesn't make any sense. If they've added one-way, then select round trip, you want to replace the existing one-way? Is that what you're asking or am I way off base?
No Sir.. this is ex:

user search round trip cgk-dps
startdate: 17 endate: 18
and api will show 2 resul :

cgk-dps date 17 and dps-cgk date 18

How To get two data ?
this my project link :
http://jatinangor-service.com/v1/search ... 02a0bbcf6a
Newbie The Passion for Learning
Post Reply