in reply to CGI.PM automaticly reset form to Defaults

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

Replies are listed 'Best First'.
Re^2: CGI.PM automaticly reset form to Defaults
by harryC (Sexton) on Jan 14, 2007 at 14:36 UTC
    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