php-windows Digest 28 Jun 2007 14:15:34 -0000 Issue 3270

Topics (messages 28159 through 28160):

Re: PHP MySQL login page won't work
        28159 by: Don Denton

array walk?
        28160 by: Juan Ignacio Borda

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Bless you!  Sorry about the double posting.  I received the original back in
my inbox citing some delivery problem so I thought it hadn't gone through.
Thanks again for your help!

~Don

-----Original Message-----
From: Niel Archer [mailto:Niel Archer] On Behalf Of Niel Archer
Sent: Wednesday, June 27, 2007 2:41 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP MySQL login page won't work

Hi

Duplicating your post isn't going to get you any more or faster replies.

This list is for PHP matters. IF there was anything wrong with the PHP it
would be a Dreamweaver support issue.  However the PHP is fine, messy
but fine.

The problem is in your form. You have two 'Login' input values so only
the second is used, which is the button, not your login name.  Hence
every query to the DB is looking for 'Do it!' as the user name and
always fails.

Niel

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message --- this code doesn't work on my PHP Version 5.2.1 (i'm trying to protect a stie from XSS)

<?php
$a=Array();
$a[]='<i>como</i>';
$a[]=Array('<b>hola</b>','hello');
array_walk_recursive($a,'strip_tags');
echo "<pre>";
var_dump($a);
echo "</pre>";
?>
it outputs:

<pre>array(2) {
[0]=>
string(11) "<i>como</i>"
[1]=>
&array(2) {
  [0]=>
  string(11) "<b>hola</b>"
  [1]=>
  string(5) "hello"
}
}
</pre>

any clues?

--- End Message ---

Reply via email to