Gossamer Forum
Home : Products : Links 2.0 : Customization :

50% is working :-)

(Page 2 of 2)
> >
Quote Reply
Re: 50% is working :-) In reply to
I tried aHappyHippo's code, but no luck. I still get the CGI Error - Email Not Defined. I don't know what the problem could be.
Quote Reply
Re: 50% is working :-) In reply to
Hello DogTags.. I think it's something regarding the templates... let me look for the code..

this is the mailer_form.html template ... I remember I had problems coz of it... try my form I hope it helps

<FORM METHOD="POST" ACTION="<%db_cgi_url%>/mailer.cgi">
<input type="HIDDEN" NAME="ID" VALUE="<%ID%>">
<input type="HIDDEN" NAME="Contact Name" VALUE="<%Contact Name%>">
<div class="margin">
<div align="center">
<table border ="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><font face="Arial" size="2">Your name:</font></td>
</tr>
<tr>
<td align="left" valign="top">
<p align="left"><font size="1" face="Arial"><input type="text" name="name" size="35"></font></td>
</tr>
<tr>
<td align="left" valign="top">
<p align="left"><font face="Arial" size="1"> </font></td>
</tr>
<tr>
<td align="left" valign="top"><font face="Arial" size="2">Your correct
email adress:</font></td>
</tr>
<tr>
<td align="left" valign="top">
<p align="left"><font size="1" face="Arial"><input type="text" name="email" size="35"></font></td>
</tr>
<tr>
<td align="left" valign="top">
<p align="left"><font face="Arial" size="1"> </font></td>
</tr>
<tr><td align="left" valign="top"><font face="Arial" size="2">The message for <b><%Contact Name%></b>:</font></td>
</tr>
<tr><td align="left" valign="top"><font size="1" face="Arial"><textarea name="message" wrap="virtual" rows="12" cols="40"></textarea></font></td>
</tr>
<tr><td align="left" valign="top"><font face="Arial" size="1"> </font></td>
</tr>
<tr><td align="left" valign="top">
<p align="left"><font face="Arial" size="1"> </font></td>
</tr>
<tr><td align="left" valign="top"></td>
</tr>
<tr><td align="left" valign="top"></td>
</tr>
<tr><td align="left" valign="top"><font face="Arial" size="1"> </font></td>
</tr>
<tr><td>
<p align="center"><font size="1" face="Arial">  <br>
<INPUT TYPE="submit" NAME="process_form" VALUE="SEND IT!">
<INPUT TYPE="reset" VALUE="Reset"> </font></p>
<p align="center"> <font size="1" face="Arial"><br>
<b><font color="#FF0000">WARNING:</font><br>
</b>It is not allowed to send advertisment or any sort of comercial
message.<br>
<font color="#FF0000">Spamming
is not allowed!</font></font></p>

<p align="center"><font size="1" face="Arial"> </font></p>
</td></tr>
</table>
</div>
</div>
</form>

Good Luck!

Any comments or suggestions about digiweb?

[This message has been edited by aHappyHippo (edited March 12, 2000).]
Quote Reply
Re: 50% is working :-) In reply to
Yep! It worked great. Thanks Smile

Now, I'm getting an error on the success page: Unkown Tag - Contact Name

Here's the code I have - all straight from the mailer mod:
mailer_success.html
Code:
Your message has been successfully sent to <%Contact Name%>.
<p>
<center>
<b><a href="javascript:history.go(-2)">Previous Page</a></b>
</center>

and my site_html_templates code is
Code:
sub site_html_mailer_form {
# --------------------------------------------------------
# Send Mail Form

my %rec = @_;
&html_print_headers;
print &load_template ('mailer_form.html', {
%rec,
%in,
%globals
});
}

sub site_html_mailer_failure {
# --------------------------------------------------------
# Mail Error

my %rec = @_;
my ($errormsg) = shift;
&html_print_headers;
print &load_template ('mailer_error.html', {
error => $errormsg,
email => $fields{'email'},
name => $fields{'name'},
message => $fields{'message'},
%rec,
%in,
%globals
});
}

sub site_html_mailer_success {
# --------------------------------------------------------
# Mail Thank you

my %rec = @_;
&html_print_headers;
print &load_template ('mailer_success.html', {
%rec,
%in,
%globals
});
}

The Contact Name in the mailer_form.html works. Since the code in both sub site_html_mailer_form and sub site_html_mailer_success are the same, shouldn't the Contact Name tag work in both?

Many thanks for any thoughts you may have.
> >