title: get action to happen, only when submit button is pressed
body: <p>i have some code that will post to the users wall, however, at the minute it will post when the page is loaded, i need it to post only when the 'post to my wall button is submitted.</p>
  
  <p>here is my code:</p>
  
  <pre><code>&lt;div align="center"&gt;
  &lt;form method="GET" action="translate.php"&gt;
  &lt;textarea name="status2" cols="50" rows="5"&lt;input type="text"/&gt;
  &lt;?php echo str_ireplace(array     ('old','awkward','all','again','behind','along','alright','hello','among','children','yes','child','kids','food','barnard castle','beer','book','blow','beautiful','bird','burst','brown','burn','boots'), 
  array ('auld', 'aakwad', 'aall','agyen','ahint','alang','alreet','alreet','amang','bairns','aye','bairn','bairns','bait','barney','beor','beuk','blaa','bonny','bord','borst','broon','bourn','byeuts'),$status); ?&gt; 
  
  &lt;/textarea&gt;&lt;br&gt;
  
  &lt;input type="submit" value="post to wall"
  // i did try my wall code here but it still posted on page load
   /&gt;
  &lt;/form&gt;
  
  &lt;/div&gt;
  
  &lt;?php
  
  $args = array(
      'message'   =&gt; 'Hello World',
      'link'      =&gt; 'http://apps.facebook.com/geordie-status/',
      'caption'   =&gt; 'Translate from English to Geordie'
      );
  $post_id = $facebook-&gt;api("/$uid/feed", "post", $args);
  
  ?&gt;
  </code></pre>