Aoshi
04-02-2001, 05:44 AM
I have several checkboxes that I want to have all the same name, but different values.
so like
<input type="checkbox" name="myname" value="yup">
<input type="checkbox" name="myname" value="nope">
<input type="checkbox" name="myname" value="happy">
<input type="checkbox" name="myname" value="yappy">
assume, the user checks all 4 of the above checkboxes.
now....I'm assuming that the php page that these values are sent to, will automatically have the variable $myname available and ready to go with all four values stored in it somehow.
my question is....does this really work in php?[nbsp][nbsp]and if so...how are the different values stored in $myname?...as an array?
I tried something similar to the above...and when i printed out what $myname was equal to...it came out to be just "yappy".[nbsp][nbsp]What happened to all the first three values?
Thanks in advance!
<!-- NO_AUTO_LINK -->
so like
<input type="checkbox" name="myname" value="yup">
<input type="checkbox" name="myname" value="nope">
<input type="checkbox" name="myname" value="happy">
<input type="checkbox" name="myname" value="yappy">
assume, the user checks all 4 of the above checkboxes.
now....I'm assuming that the php page that these values are sent to, will automatically have the variable $myname available and ready to go with all four values stored in it somehow.
my question is....does this really work in php?[nbsp][nbsp]and if so...how are the different values stored in $myname?...as an array?
I tried something similar to the above...and when i printed out what $myname was equal to...it came out to be just "yappy".[nbsp][nbsp]What happened to all the first three values?
Thanks in advance!
<!-- NO_AUTO_LINK -->