maybe on ur $?=\"\" you should add another $ to them like $$?=\"\" so if you do use cancel you dont get any errors.