By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,739 Members | 1,059 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,739 IT Pros & Developers. It's quick & easy.

XHTML (id) problem?

P: 29
Iím trying to use XHTML form for gathering data from users and send it back to a server for further processing. The problem is that, according to XHTM specifications Iíve to use (id) attribute instead of name. using id attribute results in no data will be sent to the server. When I replaced id with name attribute to code runs smoothly. In addition, my XHTML file is well defined and headed with the following lines:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " transitional.dtd">
<html xmlns="">

any help is appreciated.
Feb 8 '07 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,892
Check out the post at the top of the forum for some doctype info. It's hard to say what the problem is you need to provide the full code that is not working.

Feb 8 '07 #2

Expert 5K+
P: 7,435
You are right, it may not work. See Fragment Identifiers for an explanation but leave the name attribute in.
Feb 9 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.