title: php call back script
body: <p>I am trying to make a callback function for my website. I have seen a few PHP scripts but I am having trouble linking the script to the input text boxes. My PHP script is called <code>callback.php</code>. This is my HTML code:</p>
  
  <pre><code>&lt;form action="callback.php" method="post" accept-charset="utf-8"&gt;
  
          &lt;label id="Name"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Name&lt;br&gt; 
              &lt;input name="nameinput" type="text" style="width: 300px; height: 30px;" /&gt; &lt;/label&gt;
  
          &lt;label id="Email"&gt;&lt;br&gt;&lt;br&gt;Email Address&lt;br&gt; 
              &lt;input name="emailinput" type="text" style="width: 300px; height: 30px;" /&gt;  &lt;/label&gt;
  
          &lt;label id="Number"&gt;&lt;br&gt;&lt;br&gt;Phone Number&lt;br&gt; 
              &lt;input name="numberinput" type="text" style="width: 300px; height: 30px;" /&gt;  &lt;/label&gt;
  
          &lt;label id="Subject"&gt;&lt;br&gt;&lt;br&gt;Subject&lt;br&gt; 
              &lt;input name="subjectinput" type="text" style="width: 300px; height: 30px;" /&gt; &lt;/label&gt;
  
          &lt;label id="Question"&gt;&lt;br&gt;&lt;br&gt;Question&lt;br&gt; 
              &lt;input name="questioninput" type="text" style="width: 300px; height: 70px" /&gt;
              &lt;br&gt;&lt;br&gt; &lt;/label&gt;
  
          &lt;input name="Submit" type="submit" value="submit" /&gt;
  
          &lt;/form&gt;
  </code></pre>
  
  <p>I have my form and I have tried using other PHP scripts and when I click the submit button on the form it acts as if it is a download. Does the script have to be on a <code>.php</code> page or can I incorporate it into the HTML and put it above the form?</p>