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> Link to comment https://forums.phpfreaks.com/topic/101911-solved-form-not-working/ 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? Link to comment https://forums.phpfreaks.com/topic/101911-solved-form-not-working/#findComment-521561 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 Link to comment https://forums.phpfreaks.com/topic/101911-solved-form-not-working/#findComment-521566 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 Link to comment https://forums.phpfreaks.com/topic/101911-solved-form-not-working/#findComment-521569 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.