Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

cvs: phpweb / cvs-php.php
goba		Sun Oct 24 09:53:04 2004 EDT

Modified files:
/phpweb	cvs-php.php
Log:
apply E_ALL fixes provided by Toni Viemero

http://cvs.php.net/diff.php/phpweb/...35&r2=1.36&ty=u
Index: phpweb/cvs-php.php
diff -u phpweb/cvs-php.php:1.35 phpweb/cvs-php.php:1.36
--- phpweb/cvs-php.php:1.35	Mon Oct 11 10:18:22 2004
+++ phpweb/cvs-php.php	Sun Oct 24 09:53:02 2004
@@ -1,5 +1,5 @@
<?php
-// $Id: cvs-php.php,v 1.35 2004/10/11 14:18:22 goba Exp $
+// $Id: cvs-php.php,v 1.36 2004/10/24 13:53:02 goba Exp $
$_SERVER['BASE_PAGE'] = 'cvs-php.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/email-validation.inc';
@@ -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($_POS
T['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 sta
te 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>

Report this thread to moderator Post Follow-up to this message
Old Post
Gabor Hojtsy
10-24-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Mirrors archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:33 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.