Sean, as I said, I'm trying to accomplish this in a loop, and the variable
is in array. To use your approach I would have to get rid of the loop and
type out the code manually. This purpose of this is to create persistant
form values in case form validation fails. Here's my code:
";
echo "test
You were close:
session_register("varname");
The key thing to remember is that it's the variable name WITHOUT the $. so...
$variable = "Hello";
session_register("variable");
> > Hello,
>
> What is the correct syntax for registering a variable that's a part of an
> array. I tried these variation
Hello,
What is the correct syntax for registering a variable that's a part of an array. I
tried these variations (i'm doing this in a loop):
session_register('$form_val[$val]');
session_register($form_val[$val]);
This registers _something_, but not what I need. Thanks for any help!
stas
3 matches
Mail list logo