um.. i'm stuck with checkboxes i'm not a newb its just i haven't come accross checkboxes before. I was wondering how you get data form it - I have tried two ways:
HTML Form:
<form action= blah blah blah>
<input type="checkbox" name="example">
<input type="checkbox" name="another_example">
<input type="submit blah blah blah>
</form>
This was how itried to access the info:
if( isset($example) )
{
echo ("Example was ticked");
}
if( isset($another_example) )
{
echo("Another example was ticked");
}
// i also tried it missing out isset() and just putting if( $example )
// but it still didn't work
i also tried doing a value on the checkboxes and using the same name for both of them (like radio buttons) and accessing them like this:
if( $example == "example_1" )
{
echo ("Example was ticked");
}
if( $example == "example_2" )
{
echo("Another example was ticked");
}
oh yeah and i know about register_global but i just didn't bother putting $_POST[] in my example.
any help would be much appreciated![/QUOTE]