Welcome to WebmasterWorld Guest from 54.144.80.75

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

checkbox sending its own value and value from a hidden field?

is it possible

     
11:48 pm on Mar 6, 2009 (gmt 0)

New User

5+ Year Member

joined:Mar 6, 2009
posts:1
votes: 0


hi,
i have a form with a checkboxes on 1st page. when i press submit button, value of those checkboxes (if they are checked)are shown on the 2nd page. those values are names of the selected items. now,i need 1 more value for every checkbox that can be shown on the 2nd page after submit (for example price of selected item, so thet i can calculate total price). is that possible and how? i'm using PHP

thanks

7:36 pm on Mar 7, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0


Welcome to WebmasterWorld, bantu.

Yes, you can carry it through your form as a hidden input field, or in the query string or in a cookie too.

7:40 pm on Mar 7, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 4, 2003
posts:365
votes: 5


You may use javascripting successfully for that purpose. Create onselect or onclick event handlers for your c/boxes where you may assign a value to corresponding hidden field(s). Do not forget to wipe off such values by the same e/handler in the case you've decided to de-check already checked c/box...
4:09 pm on Mar 8, 2009 (gmt 0)

New User

5+ Year Member

joined:Mar 6, 2009
posts:1
votes: 0


ok, thanks. i did it with hidden field
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members