Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 12-02-2006, 08:20 PM   #1 (permalink)
Contributing Member
 
I like pie's Avatar
 
Join Date: 10-12-03
Location: California
Posts: 254
iTrader: 0 / 0%
Latest Blog:
None

I like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the rough
Send a message via ICQ to I like pie Send a message via AIM to I like pie Send a message via MSN to I like pie Send a message via Yahoo to I like pie
quick array question

here's what i've got:

Code:
function tag_checkboxes() { $tagname = get_tags(); $tag_ids = "1,2"; $tag_ids = explode(',',$tag_ids); $out = array(); foreach ($tag_ids as $t) { $out[] = '<input type="checkbox" name="'.$tagname[$t].'">'.$tagname[$t]; } $tag_checkboxes = implode (' ', $out); return $tag_checkboxes; }
the $tag_ids = "1,2"; part is what i have to change, it shouldn't be static like that, i know there's a way simpler way to do what i'm trying.

i think what i want is to make the foreach loop through the tagname array, but i don't know how to represent that.

this has got to be something horribly simple.

while i'm asking for help, is this the best way to do this? i can easily modify the tag info through the function but part of me wonders if this would be better done with some db work
I like pie is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-02-2006, 10:05 PM   #2 (permalink)
Contributing Member
 
I like pie's Avatar
 
Join Date: 10-12-03
Location: California
Posts: 254
iTrader: 0 / 0%
Latest Blog:
None

I like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the rough
Send a message via ICQ to I like pie Send a message via AIM to I like pie Send a message via MSN to I like pie Send a message via Yahoo to I like pie
nevermind, this was just me being dumb. i got confused for awhile of how foreach works.

feels like i forgot how to spell a simple word or something. i'm pretty sure i've done that before
I like pie is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Question about SEO Big Mountain SEO Forum 24 02-25-2008 04:40 AM
Quick first question... CommandD SEO Forum 3 08-18-2007 12:43 PM
Quick question :) bambuki22 Google Forum 4 01-22-2006 01:47 PM
Quick $array[] ordering question trevHCS Coding Forum 1 08-07-2004 10:49 AM


Sponsor Links
Webmaster Forum Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:08 AM.
© Copyright 2008 V7 Inc