Hi all -
I'm having fits trying to manipulate the values passed from an html form via "post". I thought I'd be able to do something like this:
$myvar = $_POST[0];
print $myvar;
or like this:
$myvar = $_POST[0][0];
print $myvar;
or like this:
$myvar = $_POST[$fldname];
print $myvar;
But these aren't working. What does work is this:
$myvar = $_POST['fieldname'];
print $myvar;
. . . but this doesn't help me since the receiving script will have different fieldnames every time a form is submitted.
So my questions are:
1) can php evaluate $_POST's values by index number or by inserting a variable?
2) if not then how do you access $_POST's values?
If anyone knows of a good resource out there (i.e. online tutorials) would you let me know?
Thanks in advance.
mosizlak