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

Recommended Answers

All 4 Replies

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.

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

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.