0

Hi everyone.

Could some assist me? I have a link.

<a href="index.php?make=<?=$mead_make?>&model=<?=$model?>&veh_id=<?=$vehicle_id?>">Add to Cart</a>

This HREF link is generated by a for loop from a mysql DB.

All I want to do is add the veh_id to a array and keep adding them to a array until I check out. Is this possible to do it all on 1 page?

Regards

4
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by vibhaJ
0

yes, one page, two scripts (AJAX).
Or save in array all records (but this wrong).
Or page of link, and page of link click.

subject -> i'm not find problem of Array... in your post.

0

I had the same problem before, but I didn`t know how to solve it either. Someone got some useful advice here?

0

yes, one page, two scripts (AJAX).
Or save in array all records (but this wrong).
Or page of link, and page of link click.

subject -> i'm not find problem of Array... in your post.

Hi Thanks.

When the user click's on the link it should add the veh_id into the array until they checkout. Do you have a easy way of doing it in ajax?

Regards

1

create one session array.
when user click on link you can pass veh_id to ajax page.
where in ajax page you will add veh_id in session array.
And when user checkout it will use session array.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.