When the following Form gets submitted...
PHP Code:
<fieldset id='requestChoices'>
<input name='friendRequestDecision[38]' type='hidden' value='0' />
<input id='Requestor1_1' name='friendRequestDecision[38]' type='radio' value='0' checked='checked' />
<label for='Requestor1_1'>Decide Later</label>
<input id='Requestor1_2' name='friendRequestDecision[38]' type='radio' value='1' />
<label for='Requestor1_2'>Accept</label>
<input id='Requestor1_3' name='friendRequestDecision[38]' type='radio' value='2' />
<label for='Requestor1_3'>Decline</label>
</fieldset>
1.) What values get returned to my script?
2.) Is the first "hidden" field part of $_POST ?
3.) And is there a conflict between
name='friendRequestDecision[38]' in my Hidden Input and in my Regular Inputs?
I put
var_dump in my code and got this...
Code:
array
'friendRequestDecision' =>
array
38 => string '1' (length=1)
1 => string '1' (length=1)
'submit' => string 'Update Requests' (length=15)
...but it still seems like the Hidden Input might be lingering out there?!
All of these questions are centered around SECURITY and making sure I check for the right values in the right places so that a hacker can't sneak in something bad?!
Sincerely,
Debbie
P.S. When I test the above code, it appears to be working okay as far of what is echoed on the screen and what gets updated in my database, but I figured I better check with the gurus here!!