for CGI.pm you can try this for a Rest Button like the one in my post above. $query->reset('Reset Form') = <input type="reset" name="Reset Form" value="Reset Form" /> The code your using is just a submit button $query->defaults('Defaults') = <input type="submit" name=".defaults" value="Defaults" />
Good Luck
Comment on Re: CGI.PM automaticly reset form to Defaults
with $query->defaults('Defaults') = <input type="submit" name=".defaults" value="Defaults" />
i get following error
can't modify non-lvalue subroutine call
thanks for your reply
Erm.. the poster meant that $query->defaults('Defaults') returns <input type="submit" name=".defaults" value="Defaults" />. It probably wasn't meant as a line of code to be copied in total. :-)