Jump to content
xisto Community
Sign in to follow this  
Lozbo

Send Mail In Strict Xhtml form elements atribute Name

Recommended Posts

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?hehethanx

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.