Advanced Search

Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Form Help

  1. #1
    Join Date
    Mar 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Form Help

    I was looking through the scripts but I didnt find what I was looking for.

    I want a registration form with a bunch of Info that people have to fill out and when they hit submit, I want all that info to be sent to my Email address or saved into a file in FTP or something.

    I want it to include First and Last Name, Company name, telephone, Website URL (beginning with http://), Email, Fax(Optional), Country, and a Business type (drop down box that has Importer, Whole-Saler, Customer Agent, and Retailer.).

    If there is no script like that, can someone please make one and so it will work with .htm extension format.

    Thank you in advance

    I need it ASAP

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    can someone please make one and so it will work with .htm extension format.
    No.
    This requires some form of server-side scripting.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ummm, ok. So where can I get this then?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I need it ASAP
    You need ASP. Well, actually, any server-side language will do, such as PHP or JSP, but you must have it installed on your server.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    How do I know if I have it install or not? Where can I install it, and do I have to change all my files from .htm to a .asp extension?

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    do I have to change all my files from .htm to a .asp extension?
    No, just one.
    How do I know if I have it install or not?
    Create a file with a .php, .asp, or .jsp extension. Navigate to it in your browser. If your browser asks you what to do with it, it isn't installed on your server.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Mar 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok, so if I decide to get PHP as my serverside language, how can I make it work for my form that I need?

    I just checked it and I have it.

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    PHP Code:
    <?php if(isset($_POST['first'])) {
      
    $message $_POST['first'] . ' ' $_POST['last'] . ' (' $_POST['email'] . ') has just submitted your form.\n'
        
    'Telephone: ' $_POST['tel'] . '\n'
        
    'Company: ' $_POST['company'] . '\n';
      
    mail("you@yourdomain.com""Form submission"$message"From: " $_POST['email'] . "\r\n");
    ?>
    <html>
    <!-- Thank-you page goes here, in plain HTML -->
    </html>
    <?php
      
    die();
    }
    ?>
    <html>
      <head>
        <title></title>
      </head>
      <body>
        <form action="<?php echo($PHP_SELF); ?>" method="post">
          Email: <input type="text" name="email"><br>
          First name: <input type="text" name="first"><br>
          Last name: <input type="text" name="last"><br>
          Company name: <input type="text" name="company"><br>
          <!-- You get the idea... -->
          <input type="submit" value="Post">
        </form>
      </body>
    </html>
    Untested. Note that PHP may need some extra setup to get mail working.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Mar 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much!

  10. #10
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So If I was using asp instead of php would it be the same? And do you make a different page with the script that tells it where to go or does it do that by itself?

Bookmarks

Posting Permissions

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