473,394 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Trying to write a form with checkboxes

Greetings! I'm attempting to write a form with checkboxes. This is a list
of comic books, and what I need the form to do is produce a new page that
only lists what the user has checked. And I'm completely stumped.

<form action="" id="input" name="input">
<input type="checkbox" value="buy" /> Strangers In Paradise Pkt Vol 1
TPB, $17.95
<input type="checkbox" value="buy" /> Strangers In Paradise Vol III #67,
$2.95
</form>
<input type="submit" />

*Charles S. LePage www.comiclist.com *
* New Comic Book Releases List *
Jul 20 '05 #1
4 1623
Charles LePage wrote:
<form action="" id="input" name="input">
The action needs to hold a URL to a server side script that does what you
want. The specifics depend on the language you use for server side
scripting, which depends on your server and personal preferences.
<input type="checkbox" value="buy" /> Strangers In Paradise Pkt Vol 1
This needs a name.
</form>
<input type="submit" />


This needs to be part of the form.

You probably should read <http://www.cs.tut.fi/~jkorpela/forms/>

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 20 '05 #2
Charles LePage <ch***@comiclist.com> wrote:
Greetings! I'm attempting to write a form with checkboxes. This is a list
of comic books, and what I need the form to do is produce a new page that
only lists what the user has checked. And I'm completely stumped.

<form action="" id="input" name="input">
<input type="checkbox" value="buy" /> Strangers In Paradise Pkt Vol 1
TPB, $17.95
<input type="checkbox" value="buy" /> Strangers In Paradise Vol III #67,
$2.95
</form>
<input type="submit" />


There are at least four things wrong with your code, so basic that it
looks you're trying to do it before learning how to do it. I suggest
you start by reading a guide to making HTML forms. Also, why are you
using XML /> notation? In HTML, the slash is neither necessary nor
valid. I'm assuming you're not using XHTML, since there probably isn't
any reason why you would be.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #3
On Sun, 01 Aug 2004 21:07:22 +0100, David Dorward <do*****@yahoo.com>
wrote:
You probably should read <http://www.cs.tut.fi/~jkorpela/forms/>


Thank you for the suggestion, I'll see if they have any examples of what
I'm trying to do there.

*Charles S. LePage www.comiclist.com *
* New Comic Book Releases List *
Jul 20 '05 #4
On Sun, 01 Aug 2004 16:32:35 -0400, Harlan Messinger
<hm*******************@comcast.net> wrote:
There are at least four things wrong with your code, so basic that it
looks you're trying to do it before learning how to do it. I suggest
you start by reading a guide to making HTML forms. Also, why are you
using XML /> notation? In HTML, the slash is neither necessary nor
valid. I'm assuming you're not using XHTML, since there probably isn't
any reason why you would be.


The page (and my site) is "XHTML 1.0 Transitional". And no, I don't know
how to do it, that is for certain.

*Charles S. LePage www.comiclist.com *
* New Comic Book Releases List *
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Emanuel Marciniak | last post by:
Hi all, We have the form which uses checkboxes for several fields and the target action points to outside webservice. Unfortunatelly they do not support checkboxes. How to pass it as a radio...
4
by: James Greig | last post by:
hello people, i'm just learning javascript, could someone point me in the direction of an example of the following, or give me some clues as to how it might be done: what i would like to do...
3
by: Ben Hallert | last post by:
Hi there, I haven't done a lot of Javascript programming, so I'm not having great luck debugging something I put together, and I was hoping someone here could give it a quick lookover and maybe...
12
by: Tobias Froehlich | last post by:
Hi, I have a form called form1 on which there are a lot of checkBoxes (they form a 8x6 field). I'd like to create a class in a seperate .cs file which gives some control over these checkBoxes...
4
by: Alex Sibilev | last post by:
Hello, I have a really weird problem I've been trying to solve it without any luck for the last couple of hours :( I'm writing a "conference board" application (quite similar to ASP.NET...
5
by: masterej | last post by:
Developers, Is there any way to disable all checkboxes on a form? I have a form with 160 checkboxes and I want to be able to disable all of them. Is there a way I can do something like this: ...
3
by: compuv | last post by:
I'm obtaining a weird message when I try to add the capability to write to a csv file into the formmail script that I'm using. Everything is fine initially and the email comes through to me perfectly...
1
by: dyetube | last post by:
I searched here but could not find an answer so hopefully it hasn't been asked. I would like some direction to a site the helps explain what I am needing to do or provides me with some code help as...
7
by: viki1967 | last post by:
I need one function javascript that: 1) when I enter in this htm page I see enabled only checkbox of categories A, M and T; checkboxes of microcategories all disabled; 2-a) If I select the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.