Since it is dynamic, you would probably have to use a variable reference instead of numbers at all.
Something like:
infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><?php echo ("<strong>Get Directions From Postal Code:</strong><form onsubmit=\"return false\"><input type=\"text\" name=\"from\" value=\"\"/><input type=\"button\" value=\"get directions\" onclick=\"addDirections(this.form.elements[0].value, wagmp_map_3_obj.addresses['+loopIndex+'].full,true,wagmp_map_3_obj.obj,wagmp_map_3_obj.icons['+loopIndex+'],wagmp_map_3_obj.points['+loopIndex+']);\" /></form><strong>Address:</strong><br /><?php echo($Recordset1['street']); ?><br /><?php echo($Recordset1['city']); ?>, <?php echo($Recordset1['state']); ?> <?php echo($Recordset1['zip']); ?> <?php echo($Recordset1['country']); ?>"); ?></span>',

