Jump to content

A problem with textarea in the form


Truman
 Share

Recommended Posts

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:

2w7kf8g.png

 

Any idea why this is happening?

  • Like 1
Link to comment
Share on other sites

Do you want me to place this file on external server? I'm not sure how to do that yet. :sorry:

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 by Truman
Link to comment
Share on other sites

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

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

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
 Share

×
×
  • Create New...