Shortcode is running in page editor

Thanks to @mmm I figured it out. What I am doing now is adding the form in between php tags.

EXAMPLE of what I was doing

?>
    <input type="checkbox" name="overwrite" value="true">Overwrite?<br>        
<?php

What I need to be doing is adding the content that I want to add to the page into a string that is then returned when the function is completed. So what I would want my code to look like is

EXAMPLE of what I should have been doing

<?php
$out="<input type="checkbox" name="overwrite" value="true">Overwrite?<br>";
return $out;
?>