Re: Help with regex (search/replace) please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



@Al,


> have you looked at the Pear html_QuickForm2 set?

Actually nope, whats it about? just did a google search and found it on the php site but no example code around so dont really have a clue.

@Ash,
Pastebin! Of course, why didnt i think of that... will do!

Actually, just did so that i wouldht have to double post to the list.

heres the pastebin url
http://pastebin.com/m18b6fb86

I cleaned up a lot of surrounding code so its a bit more readable leaving only the relevant code.

Theres one thing quite strange that i have to mention, this code:

if($input->getAttribute("type") ==strtolower("radio") && $input->getAttribute("name") ==strtolower("living_in_prague"))

works find
but if I instead use

if($input->getAttribute("type") ==strtolower("radio") && $input->getAttribute("name") ==strtolower("living_in_prague")  && $input->getAttribute("value") ==strtolower("0"))


OR


if($input->getAttribute("type") ==strtolower("radio") &&
$input->getAttribute("name") ==strtolower("living_in_prague")
&& $input->getAttribute("value") ==strtolower("0"))


OR


if($input->getAttribute("type") ==strtolower("radio") &&
$input->getAttribute("name") ==strtolower("living_in_prague")
&& $input->getAttribute("value") ==0))


It does not work... even though i KNOW that thats the correct value because i checked the static html page like 10 times...


      

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux