Make form.php more flexible.