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]
|