X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=blobdiff_plain;f=plekit%2Fphp%2Fform.php;h=f56f02ad00afb84992ee34396b8dc67d46e1f9b0;hp=f12d53e98d7a089fdd4e21d1ea588d3a268dfd2e;hb=6a3ae6aeff154df1d916f78e966536959314fd8e;hpb=3bdca023594d530cdbfa9c5662aa494c1e06956c diff --git a/plekit/php/form.php b/plekit/php/form.php index f12d53e..f56f02a 100644 --- a/plekit/php/form.php +++ b/plekit/php/form.php @@ -31,9 +31,9 @@ class PlekitForm { $this->values=$values; // make strict xhtml happy - $this->method="post"; if ($options['method']) $this->method=strtolower($options['method']); - $this->onSubmit=NULL; if ($options['onSubmit']) $this->onSubmit=$options['onSubmit']; - $this->onReset=NULL; if ($options['onReset']) $this->onReset=$options['onReset']; + $this->method="post"; if (isset($options['method']) && (!empty($options['method']))) $this->method=strtolower($options['method']); + $this->onSubmit=NULL; if (isset($options['onSubmit']) && (!empty($options['onSubmit']))) $this->onSubmit=$options['onSubmit']; + $this->onReset=NULL; if (isset($options['onReset']) && (!empty($options['onReset']))) $this->onReset=$options['onReset']; } function start () { print $this->start_html(); }