[snip]
Well, you didn't answer the second question, how would you do
it? So
far I see a pattern: "ignore the lowercase letters at the beginnig and
add a space before an uppercase" (this won't apply to all field names,
and I hope you're aware of that), so try something like
$text = pr
Well, you didn't answer the second question, how would you do it? So
far I see a pattern: "ignore the lowercase letters at the beginnig and
add a space before an uppercase" (this won't apply to all field names,
and I hope you're aware of that), so try something like
$text = preg_replace('/^
[snip]
You're best off using an array that matches human readable form to
field name as someone else suggested earlier. Form names for basic
fields like this should be standardized such that auto form fillers
(aka Google toolbar) are able to work. They won't know that your
field named "hm
You're best off using an array that matches human readable form to
field name as someone else suggested earlier. Form names for basic
fields like this should be standardized such that auto form fillers
(aka Google toolbar) are able to work. They won't know that your
field named "hmnrdble_
[snip]
Then you should change the name of the field. Seriously, what
do you
expect the script to do, exactly? and once you know the answer, what
would you do to achieve that? Put that (emphasis to the second
question) in words and someone might be able to help you.
[/snip]
I expect th
Jay Blanchard wrote:
[snip]
If you have similar element names in $_POST, comething like:
$human_friendly = array("psFirstName" => "First Name");
foreach ($_POST as $ key => value) {
echo "Cannot leave {$human_friendly[$key]} blank";
}
[/snip]
But I don't want to create another array, and sho
y the sender by reply e-mail and destroy all copies
of this transmission.
> -Original Message-
> From: Shaunak Kashyap [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 17, 2006 10:49 AM
> To: Jay Blanchard; Dave Goodchild
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] C
AM
> To: Dave Goodchild
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Converting a string
>
> [snip]
>
> If you have similar element names in $_POST, comething like:
>
> $human_friendly = array("psFirstName" => "First Name");
>
> fo
[snip]
If you have similar element names in $_POST, comething like:
$human_friendly = array("psFirstName" => "First Name");
foreach ($_POST as $ key => value) {
echo "Cannot leave {$human_friendly[$key]} blank";
}
[/snip]
But I don't want to create another array, and should'nt have to
Thanks Matthew,
Got it going finally.
Would you be able to help in my further question?
Alp
"Matthew Fonda" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This ought to work:
> $string = 'ABCDEFGHIJ';
> $chars = preg_split('//', $string, -1, PREG_SPLIT_NO_EMPTY);
> for ($i = 0;
This ought to work:
On Sun, 2004-11-14 at 22:32, Alp wrote:
> Hi,
>
> My question could have quite stright forward answer or the question itself
> might be silly but being a newbie, I'll ask it anyway.
> First I am trying to convert each character in a string into their
> respective ASCII code
Hi Klaus,
Thanks you very much both for your quick reply and guidance. Yes, it now
works as it should.
I have a few further questions all related to the subject if you wouldn't
mind.
One is: how can I do the following (sort of maths) with a secondary string
of ascii values i.e. 25203030
with thi
Alp wrote:
$x=1
while ($x<=strlen($string)) {
$holder = ord(substr($string, $x, 1));
$result = $result . $holder;
}
and failed since it takes ages to process and does not really return a
proper value/result but repetitive number such as 1..
I think you forgot to increment $x
Ian,
PLEASE search the archives before asking the list -- this question is
asked every couple of days, which is quite frustrating.
See http://au.php,net/nl2br
Justin French
On Monday, October 27, 2003, at 09:15 PM, Ian Gray wrote:
Hi all,
I know this can be done somehow but I am not sure.
14 matches
Mail list logo