Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Send Mail In Strict Xhtml, form elements atribute Name
Lozbo
post Nov 23 2005, 02:47 AM
Post #1


Super Member
*********

Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



Im using xhtml strict, and trying to send a form to 'mail.php' which actually sends the data, but it seems that php does not detect the $_POST['m_name']; if i do not assign a "name" attribute in the form, but strict xhtml does not accept the name attribute in my form elements...

When i try to validate, it says... "there is no name attribute" and stuff... and what i say is yeah yeah whatever you perverse Markup Validation Service, i knew that... but php does not recognize an id attribute to use with $_POST so i can not send info, or tell me if i'm wrong? What is going on?

hehe
thanx
Go to the top of the page
 
+Quote Post
truefusion
post Nov 23 2005, 04:30 AM
Post #2


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,917
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528



In XHTML, the "name" attribute gets replaced with the "id" attribute. Which i find to be a dumb thing. But, the only solution i can give you is to change doctypes from XHTML to something else like HTML 4.01. Though, the W3C made XHTML a standard, if you really need that php mail script of your's to work, just switch.
Go to the top of the page
 
+Quote Post
Lozbo
post Nov 23 2005, 07:17 PM
Post #3


Super Member
*********

Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



alright, ill give it a try then, but then are you sure that php can only read post variables through 'name' only? couse i find it to work when i switch, but i may be getting it wrong or somethin
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Contact Form(2)
  2. Php G-mail Login(8)
  3. Build Contact Mail(3)
  4. Form To Php Mail. Attachment(14)
  5. How To Enable Mail() Function In Php(1)
  6. Question About The Mail() Function(2)
  7. Help With Mail And Attachments(4)
  8. Bulk Mail(5)
  9. Wappymail_v1.50(15)
  10. Want To Send Mail But Smtp Disabled, Help Me!(7)
  11. Mail() Clone(5)
  12. Prequirement For Mail()(1)
  13. Php Functions To Send Mail(9)
  14. Requirements For Mail()(2)
  15. A Question About Php Mail(1)


 



- Lo-Fi Version Time is now: 12th October 2008 - 07:19 AM