Truman Posted April 22, 2016 Share Posted April 22, 2016 This is my code: <!DOCTYPE html PUBLIC "-//W3C//DTDXHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Forum Posting</title> </head> <body> <!-- Script 5.1 posting.html --> <div><p>Please complete this form to submit your posting:</p> <form action="handle_post.php" method="post"> <p>First Name: <input type="text" name="first_name" size="20" /></p> <p>Last Name: <input type="text" name="last_name" size="20" /></p> <p>Email Address: <input type="text" name="email" size="30" /></p> <p>Posting: <textarea name="posting" rows="9" cols="30"></textarea></p> <input type="submit" name="submit" value="Send My Posting" /> </form> </div> </body> </html> and this is what I receive: Any idea why this is happening? 1 Link to comment Share on other sites More sharing options...
dsonesuk Posted April 22, 2016 Share Posted April 22, 2016 The only thing i can see wrong is doctype This <!DOCTYPE html PUBLIC "-//W3C//DTDXHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> should be <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> notice space between "DTD XHTML" Link to comment Share on other sites More sharing options...
Truman Posted April 22, 2016 Author Share Posted April 22, 2016 (edited) The same problem occures after the change. I don't get why. This is by the book. Edited April 22, 2016 by Truman Link to comment Share on other sites More sharing options...
Ingolme Posted April 22, 2016 Share Posted April 22, 2016 The code you posted here looks fine, is it possible for you to put an example online so we can see what the browser is doing? Link to comment Share on other sites More sharing options...
Truman Posted April 22, 2016 Author Share Posted April 22, 2016 (edited) Do you want me to place this file on external server? I'm not sure how to do that yet. If with html file is the same procedure with wordpress using FileZilla I may try but don't feel like opening new free server address right now. Edited April 22, 2016 by Truman Link to comment Share on other sites More sharing options...
Ingolme Posted April 22, 2016 Share Posted April 22, 2016 You could attach the HTML file on a post in this forum. That should be good enough for testing. Make sure that you were able to reproduce this error in the file before uploading it. Link to comment Share on other sites More sharing options...
Truman Posted April 22, 2016 Author Share Posted April 22, 2016 I don't know how is this possible but now html form runs just fine... Link to comment Share on other sites More sharing options...
Ingolme Posted April 22, 2016 Share Posted April 22, 2016 Most likely you tried to close the textarea tag with /> rather than </textarea>. Since <textarea> is not an empty tag it would not be considered closed by the browser. Link to comment Share on other sites More sharing options...
dsonesuk Posted April 22, 2016 Share Posted April 22, 2016 It also just take a space placed between </ and element tag name, attributes not separated by space, mixture of quotes from single to double, unclosed single, double quotes. Link to comment Share on other sites More sharing options...
Ingolme Posted April 22, 2016 Share Posted April 22, 2016 If that was the case we would probably have seen a closing </ textarea> inside the text area field. Link to comment Share on other sites More sharing options...
Truman Posted April 22, 2016 Author Share Posted April 22, 2016 I'm attaching this file if you are interested to take a look. posting.html Link to comment Share on other sites More sharing options...
Ingolme Posted April 22, 2016 Share Posted April 22, 2016 This file works just fine in Firefox so we can't really know what the issue was. I'm quite sure it was just a missing </textarea> tag. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now