How can I temoporary save data?
<p>How can I store my data..  if you test the code...</p>

<blockquote>
  <p>you must add one by one field</p>
</blockquote>

<p>...  you will found the problem... it can't save the previous entry.. for example if i store <strong>2</strong> in one field.. when I enter next number and click <strong>Add</strong> it will delete previous...    </p>

<pre><code>&lt;?php

$puzzle = array(0,0,6,4,3,2,0,5,3,0,0,6,4,4,0,0,0,0,1,3,0,0,0,0,2,6,4,0,0,1,3,0,1,3,4,5,0);
$solved = array(0,1,6,4,3,2,5,5,3,2,1,6,4,4,2,6,5,3,1,3,5,1,6,4,2,6,4,5,2,1,3,2,1,3,4,5,6);


for($i=1;$i&lt;=36;$i  ){

    if($_POST['field'.$i]!=''){
        $puzzle[$i] = $_POST['field'.$i];
        break;
    }

}

class displayClass {
    public function display($field){
        $fieldNum=0;
        $puzzle=$field;
        GLOBAL $ids , $edited;
        $ids = array(0);
        echo "&lt;form action=\"index.php\" method=\"post\"&gt;&lt;table border = \"3\" &gt;&lt;tr&gt;" ;

        for($i=1;$i&lt;=36;$i  ){

            if($puzzle[$i]==0){
                $ids[] = $i;
                echo "&lt;td&gt;&lt;input type=\"text\" name=\"field".$i."\" maxlength=\"1\" size=\"1\"/&gt;&lt;/td&gt;";  
            }  else {

                echo "&lt;td&gt;".$puzzle[$i]."&lt;/td&gt;";

            }

            if($i%6==0){
                echo "&lt;/tr&gt;&lt;tr&gt;";
            }
        }

        echo "&lt;/td&gt;&lt;/table&gt;";
    }
}


displayClass::display($puzzle) ;

echo "&lt;input type=\"submit\" value=\"Add\" /&gt;&lt;/form&gt;";


?&gt;
</code></pre>

<p><a href="http://www.heypasteit.com/clip/03U6" rel="nofollow">Code</a></p>

<p>And also I am havig huge problem with formating questions..did the most of editing availabe..</p>
