title: PHP Working with Buttons and Functions
body: <p>I'm having difficulties on the executing a php function with a button</p>
  
  <p>I've been browsing through the net (and ofcourse here at stackoverflow) for a solution to this problem. However, still no luck.
  This problem might have been asked many times in this site, but none of them seems to work to me (or am i just that poorly literate with programming).</p>
  
  <p>What i am trying to achieve is to set a session variable once the button is clicked, and print it in the second page as it redirect.</p>
  
  <p><strong>here's what my first php page looks like:</strong></p>
  
  <pre><code>&lt;?php 
  session_start();
  if(isset($_POST['submit'])) 
  {
      $_SESSION['testing']= "hello world";
  }
  ?&gt;
  
  &lt;form method="post" action="update.php"&gt;
      &lt;input type="submit" id="submit" name="sumbit" value="Submit" &gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>and here's the update.php:</strong></p>
  
  <pre><code>&lt;?php 
  session_start();
  echo $_SESSION['testing'];
  ?&gt;
  </code></pre>
  
  <p>It may look theres nothing wrong with it, but the script does not execute anything inside the "<code>if(isset(...</code>" statement. 
  I am using WAMP as a server and my PHP version is 5.3.13</p>
  
  <p>PS: I am aware that PHP is a server-side programming, and what i'm trying to do is something similar to client-side scripting.</p>
  
  <p>The problem is, i do not know how to work with javascripting and what they call it "Ajax" scripting.</p>
  
  <p>Is there any way this could be fix? Is it possible to do this with PHP alone without using javascript or ajax?</p>