I have an application that I am creating and I am stuck at a certain point.
I am trying to pass a variable with multiple values. Therefore, my URL will look like this:
localhost/report.php?variable=value1, value2, value3
The problem is that I'm not sure how I can do this. Variables should be used to retrieve data from the database. I am using PHP and not Javascript.
Any help would be great!
EDIT:
Here is the HTML that I have on my page where the variables are selected:
<select name="types" size="19" multiple> <option value="all" selected>All Types</option> <option value="book" selected>Books</option> <option value="cd" selected>CD</option> </select>
Thus, the user can select "Books and CD", and I will need to transfer these two values ββin the variable "types".
mickburkejnr
source share