cvs: pearweb /public_html add-author.php

From: Date: Sat, 01 Sep 2001 12:59:03 +0000
Subject: cvs: pearweb /public_html add-author.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-725@lists.php.net to get a copy of this message
cox Sat Sep 1 08:59:03 2001 EDT Modified files: /pearweb/public_html add-author.php Log: checkbox vars Index: pearweb/public_html/add-author.php diff -u pearweb/public_html/add-author.php:1.9 pearweb/public_html/add-author.php:1.10 --- pearweb/public_html/add-author.php:1.9 Sat Sep 1 08:47:44 2001 +++ pearweb/public_html/add-author.php Sat Sep 1 08:59:03 2001 @@ -80,8 +80,9 @@ print " </TR>\n"; } else { $handle = $name = $email = $homepage = $password = ''; - $showemail = $admin = false; } + $showemail = (isset($showemail)) ? true : false; + $admin = (isset($admin)) ? true : false; $width = 45; $form = new HTML_Form($PHP_SELF, "POST"); @@ -89,9 +90,9 @@ $form->addText("name", "Name", $name, $width); $form->addText("email", "Email", $email, $width); $form->addText("homepage", "Homepage", $homepage, $width); - $form->addCheckbox("showemail", "Show Email Address?", (bool)$showemail); - $form->addCheckbox("admin", "Administrator?", (bool)$admin); - $form->addPassword("password", "Password", $password); + $form->addCheckbox("showemail", "Show Email Address?", $showemail); + $form->addCheckbox("admin", "Administrator?", $admin); + $form->addPassword("password", "Password", $password, 10); $form->addTextarea("info", "More info", '', $width, 5); $form->addSubmit("submit", "Add Author");

« previous php.pear.cvs (#725) next »