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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Closed Thread
How to add a form with checkboxes on an html page?
Old 12-25-2010, 12:16 AM How to add a form with checkboxes on an html page?
Novice Talker

Posts: 5
Name: lei shusheng
Trades: 0
Hi,

Can anyone please tell me how to add a form with checkboxes on an html page? I mean I dont want to use form generators, just want to know how to do it and how to code an email address where the information added in forms can be emailed to.

Looking forward to your posts.

Thanks,
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leishusheng is offline
View Public Profile
 
 
Register now for full access!
Old 12-25-2010, 07:01 AM Re: How to add a form with checkboxes on an html page?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
HTML Code:
<form name="formname" action="" method="post">
<input type="checkbox" name="chk1" value="1" />Check1
<input type="checkbox" name="chk2" value="2" />Check2
<input type="checkbox" name="chk3" value="3" />Check3
<input type="checkbox" name="chk4" value="4" />Check4
<input type="submit" name="submit" value="Go" />
</form>
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 12-25-2010, 07:04 AM Re: How to add a form with checkboxes on an html page?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Then of course you need some server side code to send the email.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 12-27-2010, 08:37 PM Re: How to add a form with checkboxes on an html page?
Skilled Talker

Posts: 60
Trades: 0
You may also try this sample code:

<html>
<head>
<title>My Page</title>
</head>
<body>
<form method="post" action="mailto:youremail@email.com">
Select your favorite cartoon characters.
<input type="checkbox" name="toon" value="Goofy">Goofy
<input type="checkbox" name="toon" value="Donald">Donald
<input type="checkbox" name="toon" value="Bugs">Bugs Bunny
<input type="checkbox" name="toon" value="Scoob">Scooby Doo
<input type="submit" value="Email Myself">
</form>
</body>
</html>


Output:
Attached Images
File Type: jpg output.jpg (18.5 KB, 4 views)
__________________
Need an SEO outsourcing firm? Get a team of experienced professionals and
Please login or register to view this content. Registration is FREE
today.

Last edited by maryparker; 12-27-2010 at 08:45 PM..
maryparker is offline
View Public Profile
 
Old 12-28-2010, 02:51 AM Re: How to add a form with checkboxes on an html page?
Html Web Design's Avatar
Experienced Talker

Posts: 31
Name: WP Themes
Location: Nagpur
Trades: 0
Code:
<html> 
<title>this is the title of the web page</title> 
</head> 
<body> 

<form action=""> 
HTML tutorial: 
<input type="checkbox"  name="tutorial" value="HTML" /> 
<br /> 
CSS tutorial: 
<input type="checkbox"  name="tutorial" value="CSS" /> 
<br /> 
other tutorial: 
<input type="checkbox"  name="tutorial" value="other" /> 
</form> 

</body> 
</html>
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Html Web Design is offline
View Public Profile Visit Html Web Design's homepage!
 
Old 12-30-2010, 03:48 AM Re: How to add a form with checkboxes on an html page?
Banned

Posts: 2
Trades: 0
chrishirst ,The answer is right.
ewkrfd is offline
View Public Profile
 
Old 01-01-2011, 07:56 AM Re: How to add a form with checkboxes on an html page?
Novice Talker

Posts: 7
Name: praveencrony
Trades: 0
<html>
<head>
<title>checkbox</title>
</head>
<body>
<form method ="post" action="your phpfile.php"
<input type="checkbox" name="option1" value="male"> Male<br>
<input type="checkbox" name="option2" value="female" > female<br>
</form>
</body>
</html>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Last edited by chrishirst; 01-01-2011 at 11:00 AM..
praveencrony is offline
View Public Profile
 
Old 01-01-2011, 09:03 AM Re: How to add a form with checkboxes on an html page?
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Why is everyone giving the exact same answer? Unnecessary...
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
View Public Profile
 
Old 01-01-2011, 09:38 AM Re: How to add a form with checkboxes on an html page?
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Quote:
Originally Posted by Gilligan View Post
Why is everyone giving the exact same answer? Unnecessary...
Post padding, trying to get their link out, never reading replies to see if they're wasting everybody's time ...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is offline
View Public Profile
 
Closed Thread     « Reply to How to add a form with checkboxes on an html page?
 

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 1.92019 seconds with 13 queries