I am trying to convert my site to php from classic asp by teaching myself. i use session variables for a shopping cart type of effect on the site and the following asp code setermines the session variable and what to add to it.
can anyone advise on how to change this to php
thanks
colin
Code:
<%
if InStr(session("recordsInCart"), ","&request.form("recordNum")) = 0 then
session("recordsInCart") = session("recordsInCart") + request.form("recordNum") &","
else
'do nothing
end if
%>
thanks
colin
Comment