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.

PHP Forum


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



Freelance Jobs

Reply
bit of a complicated question.
Old 08-10-2004, 06:53 PM bit of a complicated question.
Junior Talker

Posts: 3
Trades: 0
I'm trying to set this up, hopefully I can communicate what I'm trying to do well enough to be understood.

Here goes.

I have 50 ish users in my database.
I made a table, with user name and a checkbox. Then I did a repeat regon of the two column's.

I want to be able to select various check boxes, and querry their records on the next page.

I've tried a few different methods, but have had no luck so far. Any assistance would be appriciated.

I *think* i'm on the right track by giving each checkbox a "checked value" of the variable I want to querry by in the next page. This gives me a long string of

IsHere="bob", IsHere="tom"

is there a way to edit those into a single string, something like

AllHere="bob,tom,john"
?

thanks again for the help.

Last edited by kylevp; 08-10-2004 at 08:12 PM..
kylevp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-10-2004, 07:59 PM almost forgot
Junior Talker

Posts: 3
Trades: 0
would *really* prefer to do this using GET, so as to be easier to intergrate with a small program I'm writing to function in conjunction with the web page.
kylevp is offline
Reply With Quote
View Public Profile
 
Old 08-10-2004, 09:52 PM
Junior Talker

Posts: 3
Trades: 0
or another alternative, is it possible to submit all the values of the check boxes as an array?
kylevp is offline
Reply With Quote
View Public Profile
 
Old 08-11-2004, 08:38 AM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
You can do it quite easily as an array.

Call all your checkboxes:
allhere[]

Then when they are submitted loop through the array (using foreach) and it will contain the corect number of items for the checkboxes submitted and each will have the checked value in it.
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to bit of a complicated question.
 

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.13413 seconds with 12 queries