RE: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread David Česal
Yes, it is.

D

-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: Thursday, June 24, 2010 8:32 PM
To: Floyd Resler
Cc: PHP
Subject: Re: [PHP] Making a Password Confirmation in PHP

On Thu, 2010-06-24 at 14:29 -0400, Floyd Resler wrote:

> On Jun 24, 2010, at 2:22 PM, Michael Calkins wrote:
> 
> > 
> > This is very straight forward, if password a and b are not equal to each
other, how can I let the user know that with out losing all of the entered
information on the registration form?
> > I was trying this: 
> > ---$p1 = "";
> > $p2 = ""; // if they 
> > didn't match return
> > $p1 = " > "\"/>";--- I was trying to change the value of the variable which shows
the input field to have the password already in it.
> > and either one would just be echo'd depending on the result.
> > Any ideas please?
> > 
> > From,Michael calkinsmichaelcalk...@live.com
> > 
> > 
> If you aren't opposed to using JavaScript, I'd do it there.  If you don't
want to use JavaScript then you can load the form data from the $_POST (or
$_GET) array that was passed back to your script.
> 
> Take care,
> Floyd
> 
> 
> 


Is Javascript allowed to read the value of password boxes? I was of the
understanding that it couldn't, so checking if a password field matches
another is pretty moot.

Thanks,
Ash
http://www.ashleysheridan.co.uk




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



RE: [PHP] Stripping Characters

2010-06-22 Thread David Česal
Hello,
can this resolve your problem?

$trans = array(
"from" => "to",
"another" => "to");

$moditem = StrTr($moditem, $trans);

-- http://cz.php.net/manual/en/function.strtr.php

David

-Original Message-
From: Rick Dwyer [mailto:rpdw...@earthlink.net] 
Sent: Tuesday, June 22, 2010 5:41 PM
To: php-general@lists.php.net
Subject: [PHP] Stripping Characters

Hello List.

I need to remove characters from a string and replace them with and
underscore.

So instead of having something like:

$moditem = str_replace("--","_","$mystring");
$moditem = str_replace("?","_","$mystring"); $moditem =
str_replace("!","_","$mystring"); etc.

For every possible character I can think of, is there a way to simply omit
any character that is not an alpha character and not a number value from 0
to 9?


  --Rick



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



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



[PHP] Cookie access with CLI

2010-06-13 Thread David Česal
Hello,

I'm trying to access (from CLI) some website, where login is required.
Please, is it possible to set/save some cookies first (login session
information) and then access the website as logged user? All through CLI.

 

Thank you very much for any information.

 

David Cesal