php default value and non-object
<p>i have a multipage form with some textfields. When you fill out the form and press next the form stores the values in an object.
When you press the backbutton it reloads those values in textfields. This works fine.</p>

<p>But when you initially load the form, the object isn't created so there is nothing to load the values from and i get a Call to a member function on a non-object error.</p>

<p>example:</p>

<pre><code>&lt;inputfield value='$object-&gt;getValue()'&gt;
</code></pre>

<p>is there a way to tell it that when the object doesn't exist to just leave it empty?</p>
