[PHP] PHP forms that are valid XHTML

2003-12-30 Thread Tim Burgan
Hello, I'm *very* new to PHP. I am working through the 'Professional PHP Programming' book by Worx. In their forms they use the name attribute (ie. name=example) instead of XHTML's id attribute (ie. id=example). If I use 'name' my results display on the next page after the submit button is

Re: [PHP] PHP forms that are valid XHTML

2003-12-30 Thread Tom Rogers
Hi, Wednesday, December 31, 2003, 11:45:37 AM, you wrote: TB Hello, TB I'm *very* new to PHP. I am working through the 'Professional PHP TB Programming' book by Worx. TB In their forms they use the name attribute (ie. name=example) instead of TB XHTML's id attribute (ie. id=example). TB If I

Re: [PHP] PHP forms that are valid XHTML

2003-12-30 Thread Leif K-Brooks
Tim Burgan wrote: In their forms they use the name attribute (ie. name=example) instead of XHTML's id attribute (ie. id=example). How can I fix this? (X)HTML still requires name to be used for forms. It's usually best to use both name and ID for forms. -- PHP General Mailing List

Re: [PHP] PHP forms that are valid XHTML

2003-12-30 Thread Tim Burgan
Thanks for your replies. The name attribute is depreciated in XHTML for use with the input tag and has been replaced with the id attribute. The name element can still be used in the form tag though. What I'm looking for is something similar to ASP's GetElementByID(example); Thanks Tim Burgan