Guardian-Mage Posted April 19, 2008 Share Posted April 19, 2008 Ever notice how code that should work doesn't, and it only does that at the worst possible times? I am making a simple XHTML 1.1 Form. My PHP script is getting no data, and Firefox addon "Tamper Data" Does not record any post data being sent on my website, but it does for google, etc. I am using Firefox 3. <form action="contact.php" method="post" name="main"> <input type="hidden" id="execute" value="true" /> <input type="text" id="name" value="Your first and last name" maxlength="120" onfocus="javascript:focusMe('name');" onblur="javascript:blurMe('name');" /><br /> <input type="text" id="email" value="Your full email" maxlength="120" onfocus="javascript:focusMe('email');" onblur="javascript:blurMe('email');" /><br /> <input type="text" id="subject" value="Email Subject Here" maxlength="120" onfocus="javascript:focusMe('subject');" onblur="javascript:blurMe('subject');" /><br /> <textarea id="body" onfocus="javascript:focusMe('body');" onblur="javascript:blurMe('body');" >Email Content Here</textarea> <br /> <input type="submit" value="Send" /><br /> </form> Quote Link to comment Share on other sites More sharing options...
Fadion Posted April 19, 2008 Share Posted April 19, 2008 You dont have name for inputs, is that normal? Quote Link to comment Share on other sites More sharing options...
Guardian-Mage Posted April 19, 2008 Author Share Posted April 19, 2008 the name attribute has been depreciated in XHTML 1.1. ID is used instead Quote Link to comment Share on other sites More sharing options...
Guardian-Mage Posted April 19, 2008 Author Share Posted April 19, 2008 Sorry, I apologize. The name attribute has not been depreciated. That fixed my problem. Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.