Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
How should I follow the HTML specification while having the passed parameters automatically converted to arrays in PHP? The name attribute, not the id attribute, is used as the key when submitting form values. The name and id attributes do not have to be the same. Thank you, I thought it

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
How should I follow the HTML specification while having the passed parameters automatically converted to arrays in PHP? The name attribute, not the id attribute, is used as the key when submitting form values. The name and id attributes do not have to be the same. Thank you, I thought it

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
The name and id attributes do not have to be the same. Thank you, I thought it should be the same You're probably thinking of: http://www.w3.org/TR/html401/struct/links.html#h-12.2.3 The id and name attributes share the same name space. This means that they cannot both define an anchor with

[PHP] HTML id attribute and arrays

2010-12-17 Thread Martin C
Hi, PHP converts x[a]=b parameter of the HTTP request as an array named x with its item named a set to value b. So, it seems possible to have the following (X)HTML code: input type=text name=x[a] id=x[a] value=b / Unfortunatelly, HTML specification does not allow neither [ nor ] inside the

Re: [PHP] Header issues

2005-04-05 Thread Martin . C . Austin
Perhaps you can do some juggling to make this work, passing the query to the server, then using a client side language to transmit those results to the appropriate frame. Sounds like a big headache to me though. Martin Austin John Nichel [EMAIL PROTECTED] 04/05/2005 11:17 AM To:

Re: [PHP] functions vs classes

2005-04-04 Thread Martin . C . Austin
I know I sure appreciate reading any discussions on OOP issues, as they are something I just cannot seem to grasp. Thanks! Martin Austin Brent Baisley [EMAIL PROTECTED] 04/04/2005 08:44 AM To: DuSTiN KRySaK [EMAIL PROTECTED] cc: PHP php-general@lists.php.net

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Martin . C . Austin
$url = a href =\.$url.\.HtmlEntities($url).\./a; It appears the parse error is at the end of your opening link tag, so PHP doesn't know what .HtmlEntities($url) means. I'm at work so I can't test it, but that appears the culprit to me. $url = a href=\$url\ . HtmlEntities($url) . /a; should

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Martin . C . Austin
Glad to have helped (though someone else beat me to the punch with the right answer!) You'll get the hang of it -- the way I learned is to write out your tag that you'd like to use like this: a href=$urltext here/a Then go through and escape the characters that need it: a href=\$url\text

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread Martin . C . Austin
Or you could simply test the $color variable to see its contents, and change it if it's what you expected: $color = #FF; if($color = #FF) { $color = #00; //output } else { $color = #FF; } There may be something inherently wrong in this approach, but it has always worked

RE: Re[6]: [PHP] asking comment

2005-03-30 Thread Martin . C . Austin
I agree with this solution, though it only effects the OP if he is using a login system of sorts. Martin Austin Mikey [EMAIL PROTECTED] 03/30/2005 12:39 PM Please respond to frak To: php-general@lists.php.net cc: Subject:RE: Re[6]: [PHP] asking comment

Re: [PHP] Include file

2005-03-30 Thread Martin . C . Austin
xfedex wrote: Welli have a 30k script, with double i get 8 or 9 seconds, with sigle i get 0.05 or 0.08 seconds. The script basically made a lot of querys, its part of a user manager module of a system im writing. Could the speed have more to do with whatever database server you are using,

Re: [PHP] NetFlix Drag and Drop Row Ordering

2005-03-24 Thread Martin . C . Austin
I don't see anything special about my Netflix queue. Am I missing something there? And I have no idea what Flex is referring to, so I'll check that out if anyone lets me know where. :o) Martin Austin Burhan Khalid [EMAIL PROTECTED] 03/24/2005 12:27 AM To: Graham Anderson

[PHP] Re: Table exists?

2002-02-09 Thread Martin C. Petersen
Nick Wilson wrote: What would be the easiest way to see if a MySQL table exists with PHP? I can do it by checking against mysql_list_tables() but that seems a little clumsy. Is there a better way? Do a select on the table - if the query returns true the table exists otherwise the test is

[PHP] mail() - 7bit headers

2002-02-07 Thread Martin C. Petersen
How do i encode 8 bit text to 7 bit in php so that the mail server (courier) won't complain about 8 bit content in the header (From:) while still enabling mailreaders to decode it? Regards Martin Petersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Mail stopped working - Somewhat Urgent

2002-02-07 Thread Martin C. Petersen
Bryan Gintz wrote: All of a sudden Mail through PHP just stopped working, we can do it through the command line, but refuses to work in PHP. Any ideas? Does the maillog mention any errors? How about the webserver log? Best regards Martin -- PHP General Mailing List (http://www.php.net/)