January 29th, 2000, 09:12 AM
Hello All, I find that I need to tack on an extra ID tag for each item in an array that I'm returning from a form. I'm building the array like this:
print "<INPUT TYPE="text" NAME="item" VALUE="$info"><br>n";
And this works just fine. I was hoping to build the other array out of a set of hidden inputs, like this:
print "<INPUT type="hidden" name="id" value=$num>n";
Unfortunetly, this dose not seem to work. Is it possible to build arrays this way? Anyone have any other ideas of how I could store an array in an HTML file?
Comments on this post
January 29th, 2000, 10:40 AM
That should work fine. Why do you say it doesn't work? The only possible problem I see is that $num is not in quotes, but that shouldn't matter as long as there are no spaces in $num. Are you sure $num has been assigned? Are you sure you are referring to the set array as $id in the target script?
January 29th, 2000, 10:31 PM
Oooops, well there's yet another example why coding until 5:00 AM is not a good idea. I was trying to access the array from with in a function where I neglected to declare it GLOBAL.
But thanks for the reassurance that what I was trying to do should have worked.