I figured it out "Water_foul" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i get the following error > ---------------------------- > Parse error: parse error, unexpected T_STRING in > C:\Inetpub\localroot\aichlmayr.net\sites\aaron\module\personal\links.php on > line 21 > ---------------------------------- > for the following code and i cant figure out why (you may need to maxamise > to read it right) > -------------------------------------------- > <?php > //the function for adding new addresses > function loop_new_address($loopnum,$url,$name){ > //the ${'link' . $loopnum} says put $link and add $loopnum to the end > if(isset(${'link' . $loopnum . '})){ > loop_new_adderss($loopnum+1,$url,$name); > }; > else{ > setcookie("link" . $loopnum . "",$url,time()+3600*200); > setcookie("name" . $loopnum . "",$name,time()+3600*200); > print(<a href=$url>$name</a> was added); > }; > }; > if(isset($_GET[new])) { > loop_new_address(1,$_GET[name],$_GET[url]); > }; > print(<table>); > print(<tr><td><form Method="GET" > action="module/personal/delete.php">delete</td></tr>); > //write code > $writenum=1; > while(isset(${'link' . $writenum . ''})); > print(<a href=${'link' . $writenum . ''}>${'name' . $writenum . ''}</a>); > }; > include('links.htm') > ?> > <tr><td><input type=submit value="Delete Checked"></form></td></tr> > </table> > <table> > <tr><td><form METHOD="GET" ACTION="module/personal/links.php"><input > type=hidden name=new value=1></td><td></td></tr> > <tr><td>Site name</td><td><INPUT TYPE=text NAME="name" VALUE=""></td></tr> > <tr><td>site url (if it is not on this site it MUST contain > "http://")</td><td><INPUT TYPE=text NAME="url" VALUE=""></td></tr> > <tr><td></td><td><INPUT TYPE="SUBMIT" VALUE="Continue"></form></td></tr> > </table> > -------------------------------------------------
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php