麻烦使用方法获取在PHP中

Hello my web page is hanging after executing this small part of the code. It seems that is related to the use of the _GET table

<?php
  if(isset($_GET['radGr']))
  {
     $radGroup=$_GET['radGr']);
  }
?>

<form action='Exec3.php' method='get'>
<fieldset>
<legend>Operator</legend>
  <label>+
    <input type='radio' name='radGr' 
    <?php if($radGr == 0){ echo 'Checked=checked' ;} ?>
    value=0 >
  </label>
  <label>-
    <input type='radio' name='radGr' 
    <?php if($radGr == 1){ echo 'Checked=checked' ;} ?>
    value=1 >
  </label>  
</fieldset>
<input type='submit' value='transfert'>
</form>

Do you see something wrong in my code ?

Thanks.

It's because of ) near $radGroup=$_GET['radGr']);

just remove it.

and you can change your code to :

<input type='radio' name='radGr' 
<?php echo(!empty($radGroup) && $radGroup == 0)? 'Checked=checked' : ''; ?>  
value=0 >

The variable $radGr does not exist, it should be $radGroup.

Change it in your php within the form.