try changing the link code to:
<?php echo($WAGLOBAL_Root_URL); ?>users_Confirm.php?ID=<?php echo(mysql_insert_id()); ?>&code=<?php echo($_SESSION['randomConfirm']); ?>
for the verify button on the profile page, you need to add this code:
<form name="form1" method="post" action="">
<input name="verify_button" type="submit" id="verify_button" value="Verify">
</form>