Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 07-23-2008, 07:54 AM form submit
Skilled Talker

Posts: 55
Trades: 0
Hi
Does anyone have a free form that people can fill out and when they click submit it sends those details to be via email or something?
Iv search online but cant really find something suitable.
thanks
philmetz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-23-2008, 10:21 AM Re: form submit
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.candsdesign.co.uk/article...pt/send-email/

However javascript is NOT really suitable for sending email
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-23-2008, 10:23 AM Re: form submit
Novice Talker

Posts: 10
Trades: 0
Hi,
This should get you started. You will need to fit it into your html file and make it prety with CSS.
----

<formtitle="form1"action="mailto:info@yadayada.com"enctype="text/plain"method="post">
<pclass="legend">
Personal Information
</p>
<fieldsetid="personal">
<label>Name: <spanstyle="color:Red;">*</span></label><inputtype="text"maxlength="20"size="20"name="Full name"/><br/>
<label>Address line1:</label><inputtype="text"maxlength="30"size="30"name="Address line1"/><br/>
<label>Address line 2:</label><inputtype="text"maxlength="30"size="30"name="Address line2"/><br/>
<label>City:</label><inputtype="text"maxlength="20"size="20"name="City"/><br/>
<label>State:</label><inputtype="text"maxlength="4"size="6"name="State"/><br/>
<label>Country: <spanstyle="color:Red;">*</span></label><inputtype="text"maxlength="20"size="20"name="Country"/><br/>
<label>Postcode:</label><inputtype="text"maxlength="5"size="6"name="Postal Code"/><br/>
<label>Phone:</label><inputtype="text"maxlength="20"size="20"name="Phone"/><br/>
<label>E-mail address: <spanstyle="color:Red;">*</span></label><inputtype="text"maxlength="50"size="35"name="E-mail1"/><br/>
<label>Industry:</label><selectname="Industry">
<optionvalue="None selected"label="&lt;please select&gt;">&lt;please select&gt;</option>
<optionvalue="Agriculture"label="Agriculture">Agriculture</option>
<optionvalue="Communication"label="Communication">Communication</option>
<optionvalue="Construction"label="Construction">Construction</option>
<optionvalue="Manufacturing"label="Manufacturing">Manufacturing</option>
<optionvalue="Pharmaceutical"label="Pharmaceutical">Pharmaceutical</option>
<optionvalue="Service"label="Service">Service</option>
<optionvalue="Technology"label="Technology">Technology</option>
<optionvalue="Wholesale/Retail"label="Wholesale/Retail">Wholesale/Retail</option>
</select><br/>
</fieldset>
<br/><br/>Please click 'Subscribe',<br/>
and follow the prompts.
<p>
<inputtype="submit"value="Subscribe"/>
</p>
</form>
Jackson#1 is offline
Reply With Quote
View Public Profile
 
Old 07-23-2008, 12:28 PM Re: form submit
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
As Chris stated above, JavaScript is a very bad way to send email. It is much better to do it server-side, since there are so many powerful ways to do it from the server.
__________________
Join me on
Please login or register to view this content. Registration is FREE

Last edited by wayfarer07; 07-26-2008 at 10:00 AM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-24-2008, 04:31 AM Re: form submit
Skilled Talker

Posts: 55
Trades: 0
Thanks Christ and Jackson, Ill have a look at those options, If javascript is not appropriate, do you have a link to another option.

Thanks
philmetz is offline
Reply With Quote
View Public Profile
 
Old 07-24-2008, 05:22 AM Re: form submit
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Have I had an upgrade?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-24-2008, 05:52 AM Re: form submit
Skilled Talker

Posts: 55
Trades: 0
I dont really knowing website coding much, i use the graphical approach.
So JACKSON, i used ur code and pasted as html, but then in normal view it, juts comes out as words, with no fields to fill or buttons, any help pls

Last edited by philmetz; 07-24-2008 at 06:02 AM..
philmetz is offline
Reply With Quote
View Public Profile
 
Old 07-24-2008, 06:48 AM Re: form submit
Skilled Talker

Posts: 55
Trades: 0
I would also liek to be able for someone to upload a picture as well and it all be sent to my email?
philmetz is offline
Reply With Quote
View Public Profile
 
Old 07-24-2008, 02:30 PM Re: form submit
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by philmetz View Post
I would also liek to be able for someone to upload a picture as well and it all be sent to my email?
definitely need server side code for that to happen.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-24-2008, 02:44 PM Re: form submit
Ultra Talker

Posts: 353
Name: Michael
Location: Spring Hill, Florida
Trades: 0
I kept getting bots in my mailbox from form submissions, so I changed the submit to a image that looks like the submit but really leads to another site... It remains constant, but it's a way to send them to my site with the spam bot destroyo 2000 lmao

here's the link to see what im talking about
http://www.eautocad.com/page12.html

i
__________________

Please login or register to view this content. Registration is FREE
6,000+ Places to Advertise FREE with

Please login or register to view this content. Registration is FREE
& 25,000 Locals through statistical reference of traffic, quality, popularity, and more!

eautocad is offline
Reply With Quote
View Public Profile Visit eautocad's homepage!
 
Old 07-25-2008, 09:52 PM Re: form submit
Novice Talker

Posts: 10
Trades: 0
Hi
The problem is there are no spaces in the document. When I pasted the html script webmaster gobbled up all the spaces, but luckily left the colors so you can put them back. This is required throughout the document. eg.
inputtype
should be two words "input" and "type".
Jackson#1 is offline
Reply With Quote
View Public Profile
 
Old 07-25-2008, 09:56 PM Re: form submit
Novice Talker

Posts: 10
Trades: 0
PS I agree with Chris about serverSide vs clientSide. Also the clientSide method exposes your e-mail to auto spammers.
Jackson#1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to form submit
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.59767 seconds with 12 queries