Hello All, I've got a problem. I've set some cookies in the following manner:
setcookie("Desc[$AcctNum]",$Desc,time()+7200);
setcookie("Co_Name[$AcctNum]",$Co_Name,time()+7200);
setcookie("Addr[$AcctNum]",$Addr,time()+7200);
setcookie("City[$AcctNum]",$City,time()+7200);
setcookie("St[$AcctNum]",$St,time()+7200);
setcookie("Zip[$AcctNum]",$Zip,time()+7200);
$AcctNum++;
Header("Location: multiacctnewlogin.php?AcctNum=$AcctNum");
return;
I have a need for multiple sub-accounts so to speak, the signup page reloads for each new customer and stores the previous info in a cookie array like the above code...When done I have a preview page where I show that info to the user...then If submitted, I email it for review...problem is, I can't see the variables. I'm doing it like this(note this has a couple of methods I've tried):
<table border="1">
<tr>
<th>Number</th>
<th>Description / Nickname</th>
<th>Company Name</th>
<th>Address</th>
</tr>
<%
reset($Desc);
reset($Co_Name);
reset($Addr);
reset($City);
reset($St);
//for($i=1; isset($Desc[$i]); $i++)
while ((list ($Name) = each ($Co_Name)) && (list ($A) = each ($Addr)) &&(list ($C) = each ($City)) && (list ($S) = each ($St)))
{
++$i; %>
<tr>
<td><%echo $i;%></td>
<td><%echo $Desc[0];%></td>
<td><%echo $Name;%></td>
<td><%echo $A;%> <%echo $C;%>,
<%echo $S;%></td>
</tr>
<% } %>
<table>