JohnDubya
04-26-2007, 06:18 PM
Is it possible to add a variable onto the end of a new variable? For instance, I want a bunch of variables that start with $error_ , but then have the name of the form input after that. But I can't find a way to do that dynamically. I tried something like:
$name = 'first_name';
$error.$name = '<img src="image.jpg" />';
But obviously, this doesn't work. Is there any way to do this or do something similar that I haven't thought of yet?
$name = 'first_name';
$error.$name = '<img src="image.jpg" />';
But obviously, this doesn't work. Is there any way to do this or do something similar that I haven't thought of yet?