Checkbox Issues

Checkbox Issues

am 01.05.2006 22:18:20 von kdavis004

Hello,

I have a question with regards to checkboxes.

The question is how would I go about passing data that is the database.
For example I would use this checkbox code: value=<%response.Write dtrPD & chr(038) & "contactname" & chr(061) &
oDodgeCos3("f_person") & "&companyname=" &
Replace(oDodgeCos3("f_comp_name"),"'","''") & "&drnum=" &
Replace(request("dr_num"),"'","''") & "&address=" &
replace(oDodgeCos3("f_addr1"),"'","''") & "&city=" &
replace(oDodgeCos3("f_city"),"'","''") & "&state=" &
replace(oDodgeCos3("f_state"),"'","''") & "&zip=" &
replace(oDodgeCos3("f_zip"),"'","''") & "&phone=" &
oDodgeCos3("f_phone") & "&fax=" & oDodgeCos3("f_fax_nbr")&
"&frompage=dodgeleads/dodgedetail.asp"%> name="<%Response.Write
"dtrid"%>" ID="Checkbox1"> and all it passes is just the id.

How would I go about passing the entire record collection to the next
page when a user clicks on the checkbox.

Re: Checkbox Issues

am 01.05.2006 22:39:33 von exjxw.hannivoort

kdavis004@msn.com wrote on 01 mei 2006 in
microsoft.public.inetserver.asp.db:

> Hello,
>
> I have a question with regards to checkboxes.
>
> The question is how would I go about passing data that is the database.
> For example I would use this checkbox code: > value=<%response.Write dtrPD & chr(038) & "contactname" & chr(061) &
> oDodgeCos3("f_person") & "&companyname=" &
> Replace(oDodgeCos3("f_comp_name"),"'","''") & "&drnum=" &
> Replace(request("dr_num"),"'","''") & "&address=" &
> replace(oDodgeCos3("f_addr1"),"'","''") & "&city=" &
> replace(oDodgeCos3("f_city"),"'","''") & "&state=" &
> replace(oDodgeCos3("f_state"),"'","''") & "&zip=" &
> replace(oDodgeCos3("f_zip"),"'","''") & "&phone=" &
> oDodgeCos3("f_phone") & "&fax=" & oDodgeCos3("f_fax_nbr")&
> "&frompage=dodgeleads/dodgedetail.asp"%> name="<%Response.Write
> "dtrid"%>" ID="Checkbox1"> and all it passes is just the id.
>
> How would I go about passing the entire record collection to the next
> page when a user clicks on the checkbox.

[1]
Why would you want to pass information that is already on the server, back
to the server?

[2]
Please sent us how this code arives at the browser, by copying the html
view source. You willl probably see that you put allt info in one sring
without intervening spaces or quotes or whatever.

[2]
A checkbox does not pass it's ID on submit of the form, if that is what you
mean by "passing". It sends [post or query] it's name and if it is checked

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Checkbox Issues

am 01.05.2006 22:57:45 von Mike Brind

Evertjan. wrote:
> kdavis004@msn.com wrote on 01 mei 2006 in
> microsoft.public.inetserver.asp.db:
>
> > Hello,
> >
> > I have a question with regards to checkboxes.
> >
> > The question is how would I go about passing data that is the database.
> > For example I would use this checkbox code: > > value=<%response.Write dtrPD & chr(038) & "contactname" & chr(061) &
> > oDodgeCos3("f_person") & "&companyname=" &
> > Replace(oDodgeCos3("f_comp_name"),"'","''") & "&drnum=" &
> > Replace(request("dr_num"),"'","''") & "&address=" &
> > replace(oDodgeCos3("f_addr1"),"'","''") & "&city=" &
> > replace(oDodgeCos3("f_city"),"'","''") & "&state=" &
> > replace(oDodgeCos3("f_state"),"'","''") & "&zip=" &
> > replace(oDodgeCos3("f_zip"),"'","''") & "&phone=" &
> > oDodgeCos3("f_phone") & "&fax=" & oDodgeCos3("f_fax_nbr")&
> > "&frompage=dodgeleads/dodgedetail.asp"%> name="<%Response.Write
> > "dtrid"%>" ID="Checkbox1"> and all it passes is just the id.
> >
> > How would I go about passing the entire record collection to the next
> > page when a user clicks on the checkbox.
>
> [1]
> Why would you want to pass information that is already on the server, back
> to the server?
>
> [2]
> Please sent us how this code arives at the browser, by copying the html
> view source. You willl probably see that you put allt info in one sring
> without intervening spaces or quotes or whatever.
>
> [2]
> A checkbox does not pass it's ID on submit of the form, if that is what you
> mean by "passing". It sends [post or query] it's name and if it is checked
>

Mine always send the name and the value, if checked.

To kdavis004: That is an extremely odd value to give your checkbox. As
Evertjan said, what is it's actual representation in html, and what
exactly is it you are trying to achieve?

--
Mike Brind