The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Variable in a Variable ?
Hi,
I'm currently working with a html-form, and I've got a lot of variables to work through. Because the form is generated dynamicly, I don't know how many variables I'll get. My code is looking like this: PHP Code:
PHP Code:
|
#2
|
||||
|
||||
If your talking about arrays, this is what you would do -
$test[$count] If your talking about combining the string, this is what you would do - $another_variable = ($test).($count) Hope that helped. |
#3
|
||||
|
||||
PHP Code:
|
#4
|
||||
|
||||
Read all about variable variables here:
http://www.php.net/manual/en/languag...s.variable.php |
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
Since it's a POSTed form, you can also use the $_POST array ($HTTP_POST_VARS for older PHP versions).
PHP Code:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|