Answers To Questions About Master Feedback
Master Feedback is a free, easy to use, form handling CGI
program with anti-form hijacking code and designed to help
spam-proof your web site. It is available from
/a/28h/pl.pl?msmf
Here are the answers to some questions we have received
concerning Master Feedback.
Question:
Using a rather complex form, can the data be sorted in the
order it is in the Master Feedback form rather than
alphabetically? If not, can the Pro version do this? Marian
Answer:
Master Feedback will sort alphabetically. To force it to
sort in a certain order, a character such as a digit can be
used in the field names. Example:
name="x_1_name"
name="x_2_email"
name="x_3_phone"
Master Form V3 from /a/28h/pl.pl?mfv3
allows you to present the data in the email in any order
you want, scattered about or all in a bunch. It's done with
a plain text file containing placeholders (form field names
between double square brackets), which are replaced with the
information submitted by the form. Example:
Hello [[name]],
If we can't reach you at [[phone]]
tomorrow night, we'll send an email
to [[email]].
Question:
I have recently installed some of the Master Series scripts
(Master Recommend from /a/28h/pl.pl?mr
works a treat :)
When using Master Feedback, however, I always get the error
message 'invalid email address', and I can't figure out
why. I am not sending mail to an account that is on my
server.
Also, is it possible (for any Master Series script), to
specify an html page to direct the user to for error
messages, rather than the default black on white. If so,
how is this done? If not, can I change the background
colour, fonts, and font colours?
Alex
Answer:
Thanks for the accolades re Master Recommend!
For Master Feedback, if you get the "invalid address" when
you use the form and type a variety of email addresses into
it:
-
The first thing to do is check is that the variable
$MyEmail contains a valid email address.
-
The next is to verify your form contains the field
name="email" where form users type in their email
address. Note that "email" is case sensitive.
If the "invalid address" is always for one specific email
address, send the address to me via private email using
/contact.shtml and I'll check it. It
is possible the email address format verifying algorithm
needs to be improved.
Regarding the error messages: Most Master Series scripts
have a subroutine named ErrorHTML that generates a web page
to display error messages. Within that subroutine, you'll
find something similar to:
<html><body bgcolor="white"><blockquote><blockquote>
<h4>Notice:</h4><ul><li>$ts</ul>
</blockquote></blockquote></body></html>
The <ul><li>$ts</ul> portion displays a bulleted list of
error messages. You'll probably want to leave that portion
as is; but the rest may be modified to suit. When
modifying, any URLs (such as body background or image
src's) must be absolute http://... URLs.
Question:
Using the Master Feedback form, can the user be redirected
to thanks1.html if two particular text boxes are filled in
(name, member number) or redirecting the user to
thanks2.html if they are not? Peter
Answer:
Yes, it can be done. Here is an example:
<script type="text/javascript" language="JavaScript"><!--
function ChangeRedirectIfNeeded() {
var f1 = document.MyForm.name.value;
var f2 = document.MyForm.number.value;
if((f1.length > 0) && (f2.length > 0)) {
document.MyForm.redirect.value = 'thanks1.html';
}
}
//-->
</script>
<form
name="MyForm"
method="POST"
action="/cgi-bin/MasterFeedback.cgi">
<input
type="hidden"
name="redirect"
value="thanks2.html">
Your Name:
<input
type="text"
name="name">
Your Number:
<input
type="text"
name="number">
Other Stuff:
<input
type="text"
name="otherstuff">
<input
type="submit"
onclick="ChangeRedirectIfNeeded()">
</form>
The form specifies "thanks2.html" as the redirect web page.
When the form is submitted, it runs the JavaScript and
changes the redirect to "thanks1.html" if both form field
"name" and form field "number" contain information.
Question:
Did you find this article interesting and understandable? How can it be improved?
Your response is anonymous.
When done typing, click anywhere outside the box. [more info]
Will Bontrager
©2004 Bontrager Connection, LLC
Please note:
Articles on this website are presented "as is". However -
If you have a question about a CGI script, HTML, CSS, PHP, or JavaScript
Ask one of our Experts and you'll have your answer!
Click here for details.