Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15

Thread: f o r m s

  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts

    f o r m s

    How do i get a form that when people hit submit they are taken to a thankyou for submitting page.........

    Also when they submit the form i dont want it to open up the login box for hotmail or yahoo...i want my form to come straight to me in my mail if its possible......

    Ive tryed that cgi email, installed it and it didnt work for me lol....here what i had the form set out...:

    <FORM ACTION="http://www.freehtmlab.com/cgi-bin/cgiemail" METHOD="POST">
    Name: <input type="text" name="name" value="" size="15" maxlength="20">
    <br><bR>
    Email: <input type="text" name="email" value="" size="15" maxlength="20">
    <br><br>
    website URL: <input type="text" name="website url" value="" size="15" maxlength="50">
    <br><br>
    <input type="hidden" name="page" value="contact form">
    Please select:
    <select name="contact option">
    <option value="contact option">Comment</option>
    <option value="contact option">Feedback</option>
    <option value="contact option">Suggestion</option>
    <option value="contact option">Need help</option>
    <option value="contact option">Other</option>
    </select>
    <br><br>
    <textarea name="unique_name" rows="4" cols="30"></textarea>
    <input type="submit" value="Submit">
    <input type="reset" value="Reset">
    </form>


    now if someone could help me on sorting this that would be realy great and ill be very appreciated also i would recommend this forum for coding help......



    I just want a form that does not open login box to login to hotmail i want my visiter to be taken to a page that says thankyou for contacting us....

  • #2
    Regular Coder oldcrazylegs's Avatar
    Join Date
    Feb 2004
    Location
    East Moline Illinois USA
    Posts
    414
    Thanks
    4
    Thanked 5 Times in 4 Posts
    There is no way to make your form go to a thank you page unless the script host that you got it from made a provision for that in the script. At Geocities.com their free HTML forms script uses next url for that. But I doubt this one does. The problem with Geocities or any other free email form is that half of the emails your visitors send you never arrive.

    To get your email to arrive at a certain email address you have to set that up in your http://www.freehtmlab.com/ account.

    Read thie FAQ page or email them. They know what their script is capable of more than anyone.

  • #3
    New Coder
    Join Date
    Jun 2005
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts
    My website is on a paid host................not on a free host...Ive seen loads of websites that have a form that does not open hotmail to send it........The form sends to somewere on the website....i dont want to use a mailto: when they click send, i want it to send it to my aburnzi@freehtmlab.com email box..

    Do you know anywere i can get this script.plz

  • #4
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I went to the "action" page and received a help file of sorts ... it seems all you gotta do is add this hidden field.
    Code:
    <INPUT TYPE="hidden" NAME="success" VALUE="http://web.mit.edu/">
    where VALUE would be the page you want it to go to.

  • #5
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ab123
    Please select:
    <select name="contact option">
    <option value="contact option">Comment</option>
    <option value="contact option">Feedback</option>
    <option value="contact option">Suggestion</option>
    <option value="contact option">Need help</option>
    <option value="contact option">Other</option>
    </select>
    You are really going to break your mind to find out why every contact option is contact option.
    CATdude about IE6: "All your box-model are belong to us"

  • #6
    Regular Coder
    Join Date
    May 2004
    Location
    Minneapolis, MN, USA
    Posts
    904
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you're on a paid host, odds are you've got access to something like PHP, with which it is decidedly simple to send a basic email from a form.

  • #7
    New Coder
    Join Date
    Jul 2005
    Location
    Virginia
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think what you are looking for is a server side language. Lets say you want to use perl, change your form to:

    Code:
    <FORM ACTION="http://www.freehtmlab.com/cgi-bin/cgiemail.cgi" METHOD="POST">
    Name: <input type="text" name="name" value="" size="15" maxlength="20">
    <br><bR>
    Email: <input type="text" name="email" value="" size="15" maxlength="20">
    <br><br>
    website URL: <input type="text" name="url" value="" size="15" maxlength="50">
    <br><br>
    <input type="hidden" name="page" value="contact form">
    Please select:
    <select name="contact option">
    <option value="comment">Comment</option>
    <option value="feedback">Feedback</option>
    <option value="suggestion">Suggestion</option>
    <option value="need help">Need help</option>
    <option value="other">Other</option>
    </select>
    <br><br>
    <textarea name="unique_name" rows="4" cols="30"></textarea>
    <input type="submit" value="Submit">
    <input type="reset" value="Reset">
    </form>
    You then need the cgiemail.cgi:
    #!/usr/bin/perl
    use CGI ':standard';
    use CGI::Carp qw(fatalsToBrowser);
    $name = param('name');
    $email = param('email');
    $url = param('url');
    $mailprog = '/usr/sbin/sendmail';


    open (MAIL, "|$mailprog -t") or dienice("Can't access $mailprog!\n");
    print MAIL "To: aburnzi\@freehtmlab.com\n";
    print MAIL "From: Your Website\n";
    print MAIL "User- $name ($email)\n";
    print MAIL "$url";
    close (MAIL);

    print "Content-type:text/html\n\n";
    print "<HTML><HEAD>\n";
    print "<TITLE>Your title</TITLE>\n";
    print "</HEAD>\n";
    print "<h2>Thank you.</h2>\n";
    print "You may now close this window.\n";
    print "</body></html>";
    exit;
    Start a fire for a man and he will be warm for a night, set a man on fire and he will be warm for a lifetime.

  • #8
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Or if you have PHP, wich is IMO, a bit more easier to use:

    http://www.mylittlehomepage.net/form_mail_script

    Files uploadable.
    CATdude about IE6: "All your box-model are belong to us"

  • #9
    New Coder
    Join Date
    Aug 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i have the same problem with ab123 but the form action i use mailto: and it need to open the outlook express in my computer to submit the form.if i don't want it to open my outlook express and straight away submit the form to the email address that i want and after submitting the form,the visitor'll be taken to another page which is a thank you page.Can this be settle?please help cause i'm new to this.Thank you.Here is the simple coding that i create for the form.

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>Untitled Document</title>
    </head>

    <body>

    <form name="frmCustomer" method="post" enctype="text/plain" action="mailto:beebee_kok@yahoo.com">
    <p>Customer Name
    <input name="txtCustomerName" type="text" id="txtCustomerName">
    </p>
    <p>Customer ID
    <input name="txtCustomerID" type="text" id="txtCustomerID">
    </p>
    <p>Email
    <input name="txtEmail" type="text" id="txtEmail">
    </p>
    <p>
    <input type="submit" name="Submit" value="Submit">
    </p>
    </form>
    </body>
    </html>

    p/slease tell me in details in which line i should correct it.thanks.^-^

  • #10
    New Coder
    Join Date
    Jul 2005
    Location
    Virginia
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by beebee_kok
    and it need to open the outlook express in my computer to submit the form.if i don't want it to open my outlook express and straight away submit the form to the email address
    Do you want it to open a mail program on the viewer's computer (like Outlook) or not? Do you want to send the mail from the server? Are you trying to send it from both? I'm not understanding what it is you want to do.
    Start a fire for a man and he will be warm for a night, set a man on fire and he will be warm for a lifetime.

  • #11
    New Coder
    Join Date
    Aug 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    when i submit the form,it appear the outlook express and send the form through the outlook express to the receipient email.if i don't wish the form to be sent through outlook express,can it be done?when i try on the other computer which have no outlook express,the form cannot be submitted.Is it means that if my computer doesn't have the outlook express then i can't submit the form?please advise what the solution for this problem.what is the coding to solve it.thanks a lot.^-^

  • #12
    New Coder
    Join Date
    Aug 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i just want my form to be submitted to the reciepient email without using outlook express cause not everyone use the outlook express.so i just want the form to be submitted just by clicking the submit button.can it be done in the way like this?

  • #13
    New Coder
    Join Date
    Jun 2005
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts
    http://www.mylittlehomepage.net/form_mail_script

    Try that it works but it dont send....if i use my hotmail it sends but not like it should like this...

    name:

    address:

    option: etc etc when it sends it sends just the message not name and address..

    but if you use your webmail addy like aburnzi@freehtmlab.com it dont work...

  • #14
    Regular Coder
    Join Date
    May 2004
    Location
    Minneapolis, MN, USA
    Posts
    904
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by beebee_kok
    p/slease tell me in details in which line i should correct it.thanks.^-^
    Start with every line that uses <p></p> to provide a block-level wrapper, and replace those elements with something that actually makes sense in that context.

    Personally, I like to simply make my <label />s block-level.

  • #15
    New Coder
    Join Date
    Aug 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i have tried on the mylittlehomepage form mail script.it was written in the php coding which i totally have no idea on it.i just want a simple coding that can help me to solve the online form processing.can i know who can solve this problem for me?i need to solve this problem as soon as possible.thanks a lot.^-^


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •