Code Comments
Programming Forum and web based access to our favorite programming groups.From: toni dot viemero at iki dot fi Operating system: FreeBSD 5.3-RC1 PHP version: 5.0.2 PHP Bug Type: Website problem Bug description: phpweb/cvs-php.php E_ALL fixes Description: ------------ cvs-php.php reports undefined index errors on form elements Here's the fix: --- cvs-php.php.orig Wed Oct 20 19:42:54 2004 +++ cvs-php.php Wed Oct 20 19:45:01 2004 @@ -289,12 +289,12 @@ <tr> <th class="subr">Full Name:</th> <td><input type="text" size="50" name="fullname" - class="max" value="<?php echo clean($_POST['fullname']);?>" /></td> + class="max" value="<?php if (isset($_POST['fullname'])) echo clean($_POST['fullname']);?>" /></td> </tr> <tr> <th class="subr">Email:</th> <td><input type="text" size="50" name="email" - class="max" value="<?php echo clean($_POST['email']);?>" /></td> + class="max" value="<?php if (isset($_POST['email'])) echo clean($_POST['email']);?>" /></td> </tr> <tr> <th class="subr">For what purpose do you require a CVS account:<br/ > @@ -314,17 +314,17 @@ </tr> <tr> <th class="subr">If your intended purpose is not in the list, <br>please state it here:</th> - <td><textarea cols="50" rows="5" name="realpurpose" class="max"><?php echo clean($_POST['realpurpose']);?></textarea></td> + <td><textarea cols="50" rows="5" name="realpurpose" class="max"><?php if (isset($_POST['realpurpose'])) echo clean($_POST['realpurpose']);?></textarea></td> </tr> <tr> <th class="subr">User ID:<br /> <small>(single word, lower case)</small></th> <td><input type="text" size="10" name="id" - class="max" value="<?php echo clean($_POST['id']);?>" /></td> + class="max" value="<?php if (isset($_POST['id'])) echo clean($_POST['id']);?>" /></td> </tr> <tr> <th class="subr">Requested Password:</th> <td><input type="password" size="10" name="password" - class="max" value="<?php echo clean($_POST['password']);?>" /></td> + class="max" value="<?php if (isset($_POST['password'])) echo clean($_POST['password']);?>" /></td> </tr> <tr> <th colspan="2"><input type="submit" value="Send Request" /></th> -- Edit bug report at http://bugs.php.net/?id=30500&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=3050...0500&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=3050...30500&r=support Expected behavior: http://bugs.php.net/fix.php?id=30500&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=3050...edtwice register_globals: http://bugs.php.net/fix.php?id=30500&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30500&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30500&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30500&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30500&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30500&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30500&r=mysqlcfg
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.