116 users online (1 members and 115 guests)  

  Results 1 to 2 of 2


  1. Please help with email form script    Forum: PHP Forum
    Replies: 1
  2. Form Script    Forum: Website Scripts Forum
    Replies: 1
  3. Tell a Friend Form    Forum: Website Scripts Forum
    Replies: 3
  4. E-mail to a friend Form    Forum: HTML Forum
    Replies: 5
  1. #1
    Tim Beadle's Avatar
    New User

    Join Date
    Apr 2003

    Form Handling Script for 'Tell A Friend' Form


    I am trying to set up a form for a 'Tell A Friend' section on my website.
    The submitter has the option to tell up to five people by giving their name and email address. Each contact is then sent an auto responder email with the submitters details on, recommending my site. I have a problem with the script I am using though. If the submitter only puts in four, three, two,one or no email addresses, the from will not send, because the script is looking for five emails to send five autoresponders.

    I could do with a script that effectively says "if there is an email in this box, then send auto responder to the email. If there is no email, do not send"

    At the moment I am overcoming the problem by putting a dummy email in each box on the form.

    You can see what I mean at:


    I got the idea from:


    It seems to work ok on this form.

    Any help would be greatly appreciated.


    Tim Beadle

  2. #2
    QuietDean's Avatar

    Join Date
    Oct 2000
    Bournemouth, UK
    Ideally, you would need to edit /cgi-bin/cgiemail to do this.

    Probably best bet is to make a loop thru each of the addresses, and send each individually. Failing that, you could have address1, address2 etc and then process each of these separately in the cgiemail. Either way, its going to need editing of the cgi script. Did you write it, or did you download it from somewhere?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

Tags for this Thread