[PHP] Re: Help with regex (search/replace) please

[email protected] (Ryan S)
Newsgroups php.general
Message-ID <[email protected]>
@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...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.