Did you specify an ending section delimiter on the execution GetHtml, GetHtmlIfs, or GetHtmlIfsMult? 

If not, then the default ending delimiter is a blank or the end of record, whichever comes first.

If this is the case, and you had only tab characters between the end of the section name and your **** comments, the tabs and the comments become part of the section name.

If you specified an ending section delimiter, and it is not satisfied by the characters between the section name and the comments, those characters and the comments become the section name.

Is it possible that one of these scenarios is occurring?

Mel Rothman, CGIDEV2 Author
Mel Rothman, Inc.

katemsg wrote:
Hi,

Can anyone tell me what I'm doing wrong?

My program is supposed to count the number of additions to a file and
display the total.

If NbrRecs > 0;                
  callp wrtsection ('complete');
Else;                          
  callp wrtsection ('noselect');
EndIf;                         

The page comes up but in either case, the appropriate section doesn't
display.  The log says WrtSection: Section COMPLETE not found, or
WrtSection: Section NOSELECT not found.

That part of the HTML is:                                       
                                                                    
/$complete                    **** Completion ALERT                  
<table>                                                              
<tr><td class=warnblue>Completed! /%sltnbr%/ items checked.</td></tr>
</table>                                                             
                                                                     
/$noselect                    **** Completion ALERT                  
<table>                                                              
<tr><td class=warnred>Alert! No items checked.</td></tr>             
</table>                                                             
                                                                     
/$exit                        **** INPUT FORM
submit          ...............etc

The $top section is just fine.  I'd appreciate any help I can get.

Thanks,
Kate       



YAHOO! GROUPS LINKS




Reply via email to