Click to See Complete Forum and Search --> : I would like some help ASAP!
rgyankees23
Oct 29th, 2003, 08:56 PM
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
morrowasted
Oct 29th, 2003, 09:56 PM
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?
mendhak
Oct 29th, 2003, 11:04 PM
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.php?s=&threadid=265515
rgyankees23
Oct 30th, 2003, 08:47 PM
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.php?s=&threadid=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.
Acidic
Oct 30th, 2003, 09:22 PM
Here is an example using HTML
<html>
<body>
<form action="mailto:acid@lazystudents.net" 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.
mendhak
Oct 31st, 2003, 12:55 AM
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? :confused: Are you having trouble understanding it, or are you actually giving this to me?
rgyankees23
Oct 31st, 2003, 08:22 AM
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.
Acidic
Oct 31st, 2003, 12:38 PM
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).
rgyankees23
Oct 31st, 2003, 12:50 PM
Fields with * beside them are required!
<FORM method="POST" action="mailto:webmasterchris@hiscoolkid.com"><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?
Acidic
Oct 31st, 2003, 04:45 PM
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?
rgyankees23
Oct 31st, 2003, 04:50 PM
when the user enters all the info it doesn't send an email with all the info in it
Acidic
Oct 31st, 2003, 05:02 PM
I does, but as an attachement wich is hard to read. OK change:
<FORM method="POST" action="mailto:yours@hotmail.com">
to:
<FORM method="POST" action="mailto:yours@hotmail.com" enctype="text/plain">
Now it sends it normally.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.