string to variable and more form magic?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Dark[NSF]
Forum Newbie
Posts: 18
Joined: Thu Oct 06, 2005 9:25 am
Location: Palm Bay, FL
Contact:

string to variable and more form magic?

Post by Dark[NSF] »

Is there a good way to turn a string value into a variable name? 8O

I have Form input that has submits a user specified amount class names, and each class has a user specified amount of sub classes. When this outputs I want to make sure each class has it's correct and designated sub-classes.. And I figured the best way to do this was to make the <INPUT name = to subclass_$i, and $i would be the classes ID. Is this a good idea? or is than an easier way of doing this?

If this is to hard to understand because I'm not explaining it well enough let me know.



thanks in advance :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Dark[NSF]
Forum Newbie
Posts: 18
Joined: Thu Oct 06, 2005 9:25 am
Location: Palm Bay, FL
Contact:

Post by Dark[NSF] »


god damn your sexy :wink:


thx
Post Reply