on Thu, 31 Oct 2002 03:54:23 GMT, [EMAIL PROTECTED] (George Georgalis) wrote:
> and in the middle of a form, I want to run some code to generate > some monotonous stuff. > > start_form, > 'Name: ',textfield('name','',55),br, > 'Phone/Fax: ',textfield('phone','',55),br, > 'Address: ',textarea('addr','',5,35,20),br, > [code to generate CGI code here] > 'Date: ',textfield('date')," or ", > checkbox_group(-mkdate=>'', > -values=>['auto']),br, > submit, > end_form, > > How is that done? If you don't want to split the print statement for the form, you could put your 'monotonous stuff' in a function and include this in the print: print start_form, 'Name:', textfield('name', '', 55), br, calculate_monotonous_stuff(), br, submit, end_form; sub calculate_monotonous_stuff { # lengthy calculation return 'stuff'; } > Also is there any way to use popup_menu without getting a line > break after it? I never get linebreaks after a popup_menu unless I want to. Can you show some code? -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]