Home  |  Linux  | Mysql  | PHP  | XML
From:Ryan S Date:Sat Feb  6 20:44:20 2010
Subject:Re: Help with regex (search/replace) please
@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...



Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
Re: confirm subscribe to php-general@lists.php.net
Re: [PHP] exasperated again
Re: [PHP] Warning?
Re: [PHP] Re: Hi list --- justa simple question
[PHP] Re: Warning?



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants