phillip,

after i sent this i realized my stoopidity with those print statements in
there.  i remove them.  i also remove the header and start_html cgi calls
and code that into the template.  so, all i have in my cgi is -

$q->start_form;
$q->textfield(-name=>"listing");
$q->submit(-name=>"by_listing", -value=>"Go!");
$q->end_form;

print $template->output;

now, from there, all i would need to do is call 

<TMPL_VAR NAME=start_form> to start the form, 
<TMPL_VAR NAME=listing> for the textbox 
<TMPL_VAR NAME=by_listing> for the submit button, right.?

i did that but still am getting nothing.

sorry for the ignorance.  i have played with the simple examples from the
man page.  the associate option doesn't have too much though.

matt
 
-----Original Message-----
From: Philip S Tellis [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 08, 2001 2:14 PM
To: Boex,Matthew W.
Cc: HTML::Template List
Subject: Re: [htmltmpl] FW: [htmltmpl] another question


Sometime on Oct 8, Boex,Matthew W. assembled some asciibets to say:

> my $template = HTML::Template->new(filename => 'temp.tmpl', associate =>$q
> );

Please show us your template file.

>     #print $q->header;
>     print $q->start_form;
>     print
> $q->textfield(-name=>"listing"),$q->br,$q->submit(-name=>"by_listing",
> -value=>"Go!");

This is the kind of code that HTML::Template was designed to replace.
All this should be in your template.  Your template would contain the
actual HTML that is displayed.  Your code should only set values.

>     print $template->output;

If you're printing everything in your code with the print statements
above, then what is being printed from here?

I'd suggest first trying one of the simple examples in the man page.

Philip

-- 
Help fight continental drift.


Visit my webpage at http://www.ncst.ernet.in/~philip/
Read my writings at http://www.ncst.ernet.in/~philip/writings/

  MSN  philiptellis                         Yahoo!  philiptellis
  AIM  philiptellis                         ICQ     129711328


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to