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.

Help with programming for email form

Discussion in 'E-mail Discussions' started by Dharti, Apr 19, 2007.

  1. Dharti

    Dharti Registered

    Joined:
    Apr 19, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I know I'm doing something wrong, I just don't know what.

    You can view the page at www.greendharti.com/contact.html

    I know that the problem line is:

    <form action="http://www.greendharti.com/bin/cgimail/wwwdev/cgiemail/contact.html" method="post" name="ContactUs">

    I tried to figure out what I needed to put from the help forms on the site but I KNOW that's not right.

    Help please.
     
  2. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    I think you'd be much better off using a form mailer script of some sort, like a Perl or PHP script. Alot easier to configure and a lot more secure. that cgiemail thing never seem to work properly.

    Just my 2cents worth ;)

    Mickalo
     
  3. Dharti

    Dharti Registered

    Joined:
    Apr 19, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Well I already have it set up so I'm not looking to switch to something else - I just need help with the current script.
     
  4. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    html won't process a form. It's not a programming or scripting language. You'll need to use something like cgi or php to process the form and do what you want with it.

    The form action should be the location of the file that's going to process the form. This can be a URL or location from the root directory.
     
  5. Dharti

    Dharti Registered

    Joined:
    Apr 19, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
  6. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
  7. Dharti

    Dharti Registered

    Joined:
    Apr 19, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1

    Thank you very much, that helped me get it working.

    Now I'm having issues because it won't send mail - but it's telling me we don't have the right files installed to send it?

    Ugh, I've never seen so many problems with forms! I normally host with Godaddy and have never had issues.

    Thanks for your help, I appreciate it. :)
     
Loading...

Share This Page