I designed a form in HTML and want to submit the data to a very simple java web server that I made. In the form, I specify the action as “post” so I’d assume that’s how it should come into the java web server but “GET” is stuck in front of the URI when I look at it in the debugger. If I were to try and submit the data with the web server turned off, I’d get the “Can’t find the page you’re looking for message” but I’d see all the data stuck up in the URL. I’m not sure if that’s normal.
Can someone just have a look at my HTML page and let me know if I might be doing anything wrong?
<head>
<title>FormTest</title>
</head>
<body>
<form action="http://localhost:1088/mailer.html method="post">
<div>
<label>
First Name: <input type="text" name="firstname" size="30" />
</label>
<label>
Last Name: <input type="text" name="firstname" size="30" />
</label>
</br>
There's a bunch more text boxes and such here, but you get the idea.
<input type="submit" text="Submit!" name="submitBtn" />
</div>
</form>
</body>
You need to close off the form tag attributes with a quotation mark:
You have –
You need –