I’m pretty stuck here…
I have a script that generates a list of domains when someone searches, it uses an API call from Enom (a domain reseller) and prints availability of the domains and domain suggestions. There are checkboxes next to each called “buy” which, once checked, will allow the user to proceed to checkout. However, I need to create some kind of loop to find out which and how many checkboxes have been checked. Since the checkboxes are dynamically created I do not know how many there will be. I want to use sessions to create a shopping trolley and so far I have this:
[CODE]if(!isset($_SESSION[“domain”]) {
$_SESSION[“domain”] = $_POST[“buy”];
}
where the value of “buy” is the domain name taken from the checkbox. This will set a session fine if only one box is checked but how do I do it to incorporate the setting of several sessions if more than one box is checked? If anyone needs to know anything else to help in this matter, just ask.
Thanks.