Results 1 to 10 of 10

Thread: E-Z HTML Querstion..

  1. #1

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472

    E-Z HTML Querstion..

    Hey, I have a page with 3 text boxes as well as a submit button... I want to email that information the user inputs in the textboxes WITHOUT using Outlook or any type of mail client that someone is just expected to have...

    A little advanced for me.. any help would be appreciated..

    - Andre

  2. #2
    scoutt
    Guest
    well if you don't have the use of sendmail or mail() then you don't have a choice. can you use php or cgi?

  3. #3

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    I can use anything, just dont want it to be like "mailto:[email protected]" because that automatically opens up Outlook and if you dont have an email account set up, you cant send it..

  4. #4
    scoutt
    Guest
    right, so you want to send it though script, which is pretty easy. I have a script that can read any form and send it to any address you put. it is a php script, if that is ok

  5. #5

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    Yes, please post it as well as information how to use it..

  6. #6
    scoutt
    Guest
    ok it is the text file rename the extension to .php

    now in your form, have the action point to the script. then in the text boxes if you want to have the script make them required just put an "*" in front of the name.
    <input type="text" name="*first_name" value="">

    some thing like that. now you have a choice of where to put the email address that you want the script to send. you can do it like this

    <input type="hidden" name="recipient" value="[email protected]">

    or in the script you will see a variable $to = "$recipient"
    you can change the recipient to your email addy.

    if you want the email that is sent to have a name you need to have another hidden field in the form like this
    <input type="hidden" name="app" value="support">

    of course you can change the value if you want.
    in the script you will see "Automated Email Generated..."
    you can change that to anything you like. that is in the email that is sent to you, or where ever the email is going.

    that should be it, yo uwill notice that on the first line of the script is the shebang line, you may or may not need that. if you don't you can just delete it. if you do, you will need to get the line from the server.

    let me know if you have any problems getting it to work
    Attached Files Attached Files

  7. #7

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    damn it!, apparently my host doesn't support the use of .php files!!

    Anything else I can do?

  8. #8
    scoutt
    Guest
    ya you can make a perl file that will work with your form. there is a program call perl builder and it makes the script for you and goes by your form.html
    you can try that if you want. or see if they support .pl or .cgi scripts.

  9. #9
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    It may just be a moot point though. If he is on some type of free hosting service that has no mail services, no script/program/component is going to help him.

    Also the only way to do what you want will require something serverside scripting. Agagin if your server doesnt support some type of mail sending there is nothing you can do.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  10. #10
    scoutt
    Guest
    ya that is what I was wondering if he was on a free service

Posting Permissions

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



Click Here to Expand Forum to Full Width