Advertisement

01.13.2002 at 02:09AM PST, ID: 20254607
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

E-mail form...

Asked by samgonzales in CGI Scripting

Dear xperts,
I built a form which when submitted:

1. Sends the content of the form to myself,
2. Sends an autoresponder to the site visitor,
3. Adds the visitors e-mail address to a txt file.

The problem with this is that when a customer uses the form more then once the same address is added to the txt file which results in some e-mail addresses being on the txt file more than once. I would like to add a piece of code which checks whether the e-mail is allready in the txt file, if it is then it doesn't add it and if it ain't it adds it.... Below is the current code that I use:

#!/usr/bin/perl

$|++;
use CGI;
$query = new CGI;

$fullname=$query->param('fullname');
$email=$query->param('email');
$problem=$query->param('problem');

open(MAIL, "|/usr/sbin/sendmail");
print MAIL "From: $fullname<$email>\n";
print MAIL "To: support\@krooga.co.uk\n";
print MAIL "Subject: Customer needs help !!!\n";
print MAIL "\n";
print MAIL "Problem      : $problem\n";
close MAIL;

open(MAIL, "|/usr/sbin/sendmail");
print MAIL "From: support\krooga.co.uk\n";
print MAIL "To: <$email>\n";
print MAIL "Subject: RE: Krooga support\n";
print MAIL "\n";
print MAIL "Thank you for contacting us at krooga.co.uk\n";
print MAIL "we have received your question/comment and\n";
print MAIL "are doing our very best to reply to you as soon\n";
print MAIL "as possible. Should you require an immediate\n";
print MAIL "answer please call or text 07751228685 ...\n";
print MAIL " \n";
print MAIL "The Krooga Team\n";
print MAIL "http://www.krooga.co.uk\n";
close MAIL;

open (LIST, ">>/home/sites/www.kragoo.co.uk/users/krooga/web/cgi-bin/maillist.txt");
print LIST "$email\n";
close (LIST);


print "Content-type: text/html\n\n";
open(HANDLE,"/home/sites/www.kragoo.co.uk/users/krooga/web/redirect.htm") || print "Please goto www.krooga.co.uk";
while(<HANDLE>) {
   #$_=~s/graphics/..\/graphics/g;
   print $_;
}


While i'm at it is there any errors with the form ?

Thanks for your help,

Sam ;-)
sam@kragoo.co.uk Start Free Trial
[+][-]01.13.2002 at 06:29PM PST, ID: 6730665

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.14.2002 at 04:44PM PST, ID: 6732887

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.19.2002 at 05:29AM PST, ID: 6742916

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.19.2002 at 09:14AM PST, ID: 6743300

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2002 at 09:16AM PST, ID: 6748959

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2002 at 11:33AM PST, ID: 6749333

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.28.2002 at 03:48PM PST, ID: 6762394

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: CGI Scripting
Sign Up Now!
Solution Provided By: maneshr
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32