The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MailForm problems

Discussion in 'E-mail Discussions' started by markcampion, Jun 11, 2004.

  1. markcampion

    markcampion Registered

    Joined:
    Jun 10, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    i need help with the mailform script and form. i am currently just trying to create a mailing list entry for my site and the fomat is as follows:

    Form webpage code:

    <html>

    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 6.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>New Page 1</title>
    </head>

    <body>

    <form method="POST" action="http://www.nusclubbing.co.uk/cgi-bin/FormMail.cgi">
    <p><input type="submit" value="Submit" name="B1"><input type="text" name="realname" size="20"><input type="text" name="email" size="20"></p>
    <input type="hidden" name="recipient" value="editor@nusclubbing.co.uk">
    <input type="hidden" name="redirect" value="www.nusclubbing.co.uk">
    <input type="hidden" name="subject" value="MAILING LIST ENTY">
    </form>
    <p>&nbsp;</p>

    </body>

    </html>

    Variables declared:

    # @referers allows forms to be located only on servers which are defined #
    # in this field. This security fix from the last version which allowed #
    # anyone on any server to use your FormMail script on their web site. #

    @referers = ('www.nusclubbing.co.uk','69.10.149.72');

    # @recipients defines the e-mail addresses or domain names that e-mail can #
    # be sent to. This must be filled in correctly to prevent SPAM and allow #
    # valid addresses to receive e-mail. Read the documentation to find out how #
    # this variable works!!! It is EXTREMELY IMPORTANT. #
    @recipients = &fill_recipients('nusclubbing.co.uk');

    -------------

    Attached is a screen dump of the error i get. One thing that does happen though is that when i enter a email address into the email textbox (i.e my personal email address) i get a reply from the autoresponder i set up on the account that the form is submitted to.

    you can find this page to try it for youselves @ http://www.nusclubbing.co.uk/testmailform.htm

    Please help as i am totally lost

    Mark C :confused:
     

    Attached Files:

  2. drm

    drm Member

    Joined:
    Dec 13, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I think the error is because your 'redirect' value needs to include the http://

    So you should have

    <input type="hidden" name="redirect" value="http://www.nusclubbing.co.uk">
     
  3. markcampion

    markcampion Registered

    Joined:
    Jun 10, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Sorted

    thanks for the reply, i've sorted it tho

    I had to play around with the variable params. i also found out that i have to name a specific page name when using redirect.:D
     
Loading...

Share This Page