%pos is set to the occurrence of ?name=, which is six letters long, but we don't want to include that in the /echo, so we add 6 to it.

Same applies to %pos2, but ?rm= is only 4 long.