Line 179: if (!isset($InputValues['ptv_'.$m[1]])) Should read: if (!isset($InputValues['ptv_'.$m[2]])) This causes entered values to be lost when reloading on an error, and source is an external page. ~ ~ Dave