My backend accepts comma delimited id values "11,12,13". On the front end I have a check list that allows multiple selection and posts the following.
someurl.com?id=11&id=12&id=13
How do I use $_GET for multiple instances of ID, format it into a comma seperated string? Or alternatively, is there a better way to force checklists to submit the form in the format I want?
Now back to the front end, I use XSLT to determine whether or not to check an item to remebr it's previous state.
<xsl:choose>
<xsl:when test="$id = *">
<option selected="selected">
<xsl:value-of select="*"/>
</option>
</xsl:when>
<xsl:otherwise>
<option>
<xsl:value-of select="*"/>
</option>
</xsl:otherwise>
</xsl:choose>
This is fine when just one option is selected but with multiples, how would you handle multiple instances of that $id value in the url?
Any help and solutions much appreciate.