REST Api downloads a file

REST Api downloads a file

Hi all, 

I am integrating a website we have on Magento, so that a newsletter subscriber on the website is added to our MEMBER database.  The website is in PHP though so my tweaking is not very strong.  The REST API and form are working fine now, but the result is that an XML file or JSON file are downloaded whenever you click submit.

Can I avoid that ?

tx,
Seppe
>>>
Here's the code.

<form action="https://creator.zoho.com/api/my_owner/json/my_application/form/MEMBER/record/add/" method="post" id="newsletter-validate-detail">
<input type="text" name="Email" id="newsletter" placeholder="<?php echo $this->__('Enter your email adress..') ?>" title="Sign up for our newsletter" class="input-text required-entry validate-email">
<input type="hidden" name="authtoken" value="xxxyyyzzz">
<input type="hidden" name ="CTID" value="myid">
<input type="hidden" name ="MemberLevel" value="Fan">
<input type="hidden" name ="MemberType" value="CONS">
<input type="hidden" name ="Subscription" value="Yes">
<input type="hidden" name ="scope" id="scope" value="creatorapi">
<button type="submit" title="Subscribe" class="button btn <?php if (Mage::getStoreConfig("ib_theme_design/general/store_footer") == "dark") {echo "btn-info";} else {echo "btn-primary";} ?>"><span><span><?php echo $this->__('Subscribe') ?></span></span></button>
</form>
<script type="text/javascript">
   //<![CDATA[
       var newsletterSubscriberFormDetail = new VarienForm('newsletter-validate-detail');
   //]]>
   </script>