1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

HTML Forms -HELP !

Discussion in 'Programming' started by ladesignz, Nov 15, 2005.

  1. #1
    I can't seem to get this whole forms thing down. Here are the steps I took to make the form at ladesignz.com/contact work

    1. Download Script from form2email.net
    2. Edit Parameters in first section to read

    my $script_name = 'form2email.pl';
    my $HTML_thankyou = 'http://www.ladesignz.com/thanks.htm';
    my $to = 'ladesignz@gmail.com';
    my $from = 'ladesignz@gmail.com';
    my $mailprog = '/usr/sbin/sendmail';
    my $subject = 'Web Enquiry from www.ladesignz.com';

    3 Loaded that text file to my cgi-bin
    4. Set up form in dreamweaver with the following code <form method="POST" action="/www/cgi-bin/form2email.pl">

    It will not work- Anyone who knows what I am doing wrong I would really appericate it

    Thanks
     
    ladesignz, Nov 15, 2005 IP
  2. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i think step 4 normally is something more lik
    home/username/public_html/cgi-bin/script.pl

    also make sure you upload it in BINARY mode, ascii mode can screw up cgi scripts.
     
    just-4-teens, Nov 15, 2005 IP
    JSellnau_TSCC likes this.
  3. draculus

    draculus Peon

    Messages:
    63
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You are using a file system path for your action script. As the action is executed from a browser you to use an internet path. try removing the "/www/" from the path. This assumes your php file is in your websites root folder "www".
     
    draculus, Nov 19, 2005 IP
  4. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    In this case the CGI script is a Perl script. And since Perl scripts are text files they should be uploaded as text/ASCII, *not* binary.
     
    FeelLikeANut, Nov 19, 2005 IP