Results 1 to 12 of 12

Thread: I would like some help ASAP!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    New York
    Posts
    74

    I would like some help ASAP!

    I have no idea on how to create a form that the users fill in the blanks and an email gets sent to the person who created the form...

    For example:

    If I have a form. You fill in the blank fields and after you submit the email goes to me!

    How would i go about making that?

    thanx

  2. #2
    Lively Member morrowasted's Avatar
    Join Date
    Aug 2003
    Location
    Houston, TX
    Posts
    118
    what lang, javascript, PHP, ASP?

    i can tell you how to do it easily in PHP... but this isnt really yhr php forum.


    so whatll it be?

    -morrowasted

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Or you could take the easy way out and do a mailto: in the <FORM>.

    I've put in an idea how to accomplish the PHP version in this thread: http://www.vbforums.com/showthread.p...hreadid=265515

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    New York
    Posts
    74
    Originally posted by morrowasted
    what lang, javascript, PHP, ASP?

    i can tell you how to do it easily in PHP... but this isnt really yhr php forum.


    so whatll it be?
    Can it be html or CSS????

    Originally posted by mendhak
    Or you could take the easy way out and do a mailto: in the <FORM>.

    I've put in an idea how to accomplish the PHP version in this thread: http://www.vbforums.com/showthread.p...hreadid=265515
    Can you show me an example?

    Listed below is a zipped folder of all the files you need. The form.html and formmail.php are the files for the php set. The other file is the file that has the orginal code on it.
    Attached Files Attached Files
    Last edited by rgyankees23; Oct 30th, 2003 at 09:55 PM.

  5. #5
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Here is an example using HTML
    Code:
    <html>
    <body>
    <form action="mailto:[email protected]" enctype="text/plain">
    <textarea>Insert your e-mail here</textarea>
    <input type="submit">
    </form>
    </body>
    </html>
    Or at least I think that will work. maybe the enctype should be different. Obviously change the e-mail address before you test this out.

    The BIG obvious downside with this method is that they user has to open their client up.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by rgyankees23
    Can it be html or CSS????



    Can you show me an example?

    Listed below is a zipped folder of all the files you need. The form.html and formmail.php are the files for the php set. The other file is the file that has the orginal code on it.
    Isn't that ZIP example good enough? Are you having trouble understanding it, or are you actually giving this to me?

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    New York
    Posts
    74
    my friend said that he wanted a form because he didn't understand it. So I made him one but I couldn't finish because I didn't understand how to make it send the info that the user entered in the field boxes to his email.

    the one in the zip is the .php one. He tells me now that his host does not support .php extensions.

  8. #8
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Well, if the host doesn't support PHP, what does the host support? If it is only HTML, then you're stuck with what I posted earlier (or get a new host).

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    New York
    Posts
    74
    Code:
    Fields with * beside them are required!
    <FORM method="POST" action="mailto:[email protected]"><input type="hidden" name="ArdSI" 
    
    value="27b479e918f73019816fa5bb60365dba" />
    <B>Name:</B><input NAME="Name" size="30">*<BR>
    <B>Company Name: <B><input name="Company Name" type="text" value="" size="30">*<BR>
    <B>Address: <B><input name="Address" type="text" value="" size="30">*<BR>
    <B>City: <B><input name="City" type="text" value="" size="20">*<BR>
    <B>State: <B><input name="State" type="text" value="" size="20">*<BR>
    <B>Zip Code: <B><input name="Zip Code" type="text" value="" size="10">*<BR>
    <B>Phone Number: <B><input name="Phone Number" type="text" value="" size="12">*<BR>
    <B>Email Address: <B><input name="Email Address" type="text" value="" size="30">*<BR>
    <B>Do you have an existing web site? If so, what is the URL: <input name=""Existing Site URL:  type="text" value="http://" 
    
    size="30"><BR>
    <BR><BR><BR><B>What web design services do you need? Select <Font color="#FF0000">one:</FONT><BR>
    <input name="Makeover, MinorChanges" type="radio" value=""> Site make over , only minor content changes.<BR>
    <input name="Makeover, Aditional Content & Pages" type="radio" value=""> Make over, with some additional content and 
    
    pages<BR> 
    <input name="Add Ecommerce to an Existing site"  type="radio" value=""> Add E-commerce to existing site (shopping 
    
    cart/online ordering/real time online credit card processing)<BR>
    <input name="New site design, new content, to be used at existing domain" type="radio" value=""> New site design, new 
    
    content to be used, at existing domain <BR>
    <input name="New site design, new content, new domain" type="radio" value=""> New site design, new content, new domain 
    
    <BR><BR>If a new domain is needed, what domain name do you want? <input name="New Domain?" type="text" 
    
    value="http://">
    <BR><BR>Please describe your business.<BR>
    <textarea name="Biz Description" rows="10" cols="50" ></textarea><BR><BR>
    What purpose(s) will your web site serve? (check all that apply)<BR>
    <input type="checkbox" name="Selling products and/or services online" value="">Selling products and/or services online<BR>
    <input type="checkbox" name="Advertising brochure or portfolio" value="">Advertising brochure or portfolio<BR>
    <input type="checkbox" name="Providing information and service to existing customers" value="">Providing information and 
    
    service to existing customers<BR>
    <input type="checkbox" name="Running an affilitate program" value="">Running an affiliate program<BR>
    <input type="checkbox" name="Selling banner advertising" value="">Selling banner advertising<BR>
    <input type="checkbox" name="Selling subscriptions to online content or downloadable software or files " value="">Selling 
    
    subscriptions to online content or downloadable software or files<BR> 
    <input type="checkbox" name="Providing info to and communication with and among your employees" value="">Providing info to 
    
    and communication with and among your employees<BR>
    <BR><BR>If selling products/services online, please list product/service categories and approximate number of individual 
    
    products/services in each category: <textarea name="Catagorys of Services & Products" rows="10" cols="50" ></textarea>
    <BR><BR><B><u>Credit Cards<B></U><BR>
    <BR>
     Do you have a credit card merchant account that you will be using for processing payments for your online store?<BR>
     <input name="Online Payments - Yes" type="radio" value="">Yes
     <input name="Online Payments - No" type="radio" value="">No
    
    
    
    
    <input type="submit" onBlur="doVerify()" value="Send it!">
    <input type="reset" value="Start over">
    How and where do I include what you posted above, in that?

  10. #10
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    that code seems fine on its own, except for that you've called a JS function to validate the data and the function doesn't exist. To get rid of that, simply don't validate, by changing:
    <input type="submit" onBlur="doVerify()" value="Send it!">
    (it's near the bottom)
    to:
    <input type="submit" value="Send it!">


    Oh, and you might have to change the e-mail address near the top depending on whose that address is.
    Other than that, what do you want done to the code?
    Have I helped you? Please Rate my posts.

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    New York
    Posts
    74
    when the user enters all the info it doesn't send an email with all the info in it

  12. #12
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    I does, but as an attachement wich is hard to read. OK change:
    Code:
    <FORM method="POST" action="mailto:[email protected]">
    to:
    Code:
    <FORM method="POST" action="mailto:[email protected]" enctype="text/plain">
    Now it sends it normally.
    Have I helped you? Please Rate my posts.

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