You are here: Are xhtml 1.1 forms compatible with PHP5? « All PHP « IT news, forums, messages
Are xhtml 1.1 forms compatible with PHP5?

Posted by Richard Quick on 05/25/05 15:15

Hi,

My understanding is that the name attribute has been removed from xhtml 1.1
completely.

However when I try to process a form using PHP5 it does not seem to
recognise fields which only have an id attribute.

The xhtml 1.1 tag I'm using is:
<input type="text" id="name" value="..." size="33" /> Which I'm then
assigning to a variable in PHP as follows:

$name = $_POST['name'];

This doesn't seem to work however when I add a name attribute, as follows,
it works:

<input type="text" id="name" name="name" value="..." size="33" />

I'm using the following doctype:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Am I doing something wrong?

--
Richard Quick
http://www.chocolatemagazine.co.uk

(PS - Feel free to flame me for multi-posting)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация