Re: Help with regex (search/replace) please
| From: | Ryan S | Date: | Sat, 06 Feb 2010 20:44:20 +0000 |
| Subject: | Re: Help with regex (search/replace) please | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301854@lists.php.net to get a copy of this message | ||
@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...