Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
06-25-2004, 06:11 AM #1
- Join Date
- Nov 2003
- Thanked 0 Times in 0 Posts
I have been trying to solve a validation problem and I think the only way that i will be able to get it to work is to use the $$var_name [in PHP].
I have to put some variables together to form the name of the form field names. So the name of an input would be: description_VAR1 and I need to be able to reference the form element named "description_VAR1" to do some string validations. I hope that makes some sense.
Anyone have any ideas?
06-25-2004, 07:01 AM #2
- Join Date
- Jun 2002
- Thanked 251 Times in 247 Posts
Do you mean this?
var var1 = "blah";
I've been posting this link about "bracket notation" several times in this forum.
I'll probably put it in my sig later.
Tower of Hanoi Android app (Ad-FREE!)
Tower of Hanoi Android app (FREE!)
Tower of Hanoi Leaderboard
Samegame Facebook App
Samegame Facebook App Leaderboard
vBulletin 5 Floating Bar Mod
vBulletin 5 Photo Slideshow Mod
vBulletin 5 Quote Selected Text Mod
vBulletin 5 Profile Preview Tooltip Mod