when i try to excute your code over the brower i get not output from the script, but when i execute the script at command line i gets output. why ?
--- drieux <[EMAIL PROTECTED]> wrote: > > On Monday, April 1, 2002, at 07:12 , Joe Echavarria > wrote: > > > > > if (param()) > > { > > $cate= param('categorias'); > > print " The Param is ---> es $cate"; > > }; > > while ($file = <LISTA>) { > > ($categoria,$link) = split(":",$file); > > ##this code is not working > > if ($categoria eq $cate) { > > print "<tr><td >$categoria</td>"," > > ","<td>$link</td></tr>" } > > semi colon -------------^ > > } > > print "</table>"; > > > > what if there is no param('categorias'); > > how about: > > if( param('categorias') { > # have a categorias to select against > $cate= param('categorias'); > while ($file = <LISTA>) { > ($categoria,$link) = split(":",$file); > if ($categoria eq $cate) { > print "<tr><td >$categoria</td>"," > ","<td>$link</td></tr>" ; > } > } > > } else { > > # have no param of 'categorias' set. > while ($file = <LISTA>) { > ($categoria,$link) = split(":",$file); > print "<tr><td >$categoria</td>"," > ","<td>$link</td></tr>" ; > } > > } # end else no param > > > > > ciao > drieux > > --- > > > -- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________________________ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]