hi, this is my first script and ive had success with it so far but now i want to adapt it, it prints off an ordered list and i would like to controll the numbers in the ordered list with php: [code]<?php $filename = "capformtest.txt"; $nameid = 1; while ($nameid < 99) { if (isset($_POST['submit'])) { //if no name entered print an error if (empty($name)) { $noname = "Inget namn gav"; } else { $file = fopen( $filename, "a"); $string = "<li value=\"$nameid\">$name</li>"; fwrite( $file, $string ); $nameid = $nameid + 1; if (!empty($thecomment)) { $string = "<ol><li>$thecomment</li></ol>"; fwrite( $file, $string ); } fclose( $file ); } } } ?>[/code] So basically what im trying to do is start the ordered list at one and count up (I used < 99 just as a random number, there definatly wont be more than 99 entries...) but i tested it and scince i added the WHILE loop its just stopped the page from loading. Any advice on another way to do it would be great!