[Zope] Coding help
Oliver Bleutgen
myzope@gmx.net
Mon, 22 Apr 2002 20:10:38 +0200
Todd Loomis, DMSO (SAIC) wrote:
> All:
>
> Why when I use the below code to check for a password if one isn't found
> the page ask me to download a file instead of returning my results for
> the page.
>
> <dtml-in locator>
> <dtml-if Password>
> <dtml-sendmail smtphost="thunderbird.dmso.mil">
> To: <dtml-var Username>
> From: register@dmso.mil
> Subject: DMSO Extranet - Password
>
> Dear <dtml-var Realname>:
>
> Here's your DMSO Extranet password: <dtml-var Password>
>
> Sincerely,
>
> DMSO
> </dtml-sendmail>
> <dtml-var standard_html_header>
> <p>Your password has been emailed.</p>
> <dtml-var standard_html_footer>
> <dtml-else>
> <dtml-var standard_html_header>
> <p>No account with the username <em><dtml-var Username></em> found.</p>
> <dtml-var standard_html_footer>
> </dtml-if>
> </dtml-in>
Wild guess,
1. you're using internet explorer
2. your dtml-in loop is empty
This could explain what you see.
Try putting <dtml-var standard_html_(header|footer)> outside the dtml-in
and see what happens.
cheers,
oliver