Don't forget, if it's PHP it needs <??> around it, otherwise th PHP parser will never see it!
process_edit_barrister.php?bar_id=<?php echo urlencode($bar_id)?>
Of course, if $bar_id is always numeric you can get away with just
process_edit_barrister.php?bar_id=<?php echo $bar_id?>