PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Sorry, i misread your original question, just using name="group1" should do it, but you're relying on register_globals being On. With register_globals Off (as they should be) you'de do something like:
Well, some guy that first coded my search engine pages used GET,
so I saw it works and continued to use them.
In practise what is the difference between POST and GET - security, speed, workflow ... ?
Read some doc's on this, but to me it never made significant difference in work (my 3 months of PHP coding , and I was not completely sure what the authors wanted to say in those doc's.
Bsically GET vars get passed in the url, POST vars get passed via a form. So GET forms tend to create ugly urls and also everyone can see the passed information (can also cause problems with bookmarks etc).
POST forms tend to be preferable. I usually reserve GET vars for links, foo.php?var=whatever etc.. and always use POST for forms.
Well, put a var_dump($_POST); and look at the output of it after you press submit. You should see the correct value of group1 in there. Then just before you display the form again put an echo $group1; , that should have the same value. If it doesn't have the same value or is empty/undefined then you have register_globals Off (which is good) and you need to do the $group1 = $_POST['group1']; line that i had above.
Also put error_reporting(E_ALL); as the very first line of your script, that should help in debugging it.