所以我一直在努力为Android应用添加一个带有表单的基本表,到目前为止,除了提交之外,一切都工作正常。当我点击提交时,我收到错误,没有应用程序打开发送电子邮件。这在Windows 10上工作正常,并打开了邮件客户端,所以我想知道如何解决它。这是我的表格/表格代码(很抱歉):
<table border="1" cellspacing="0" bgcolor="lightgrey" bordercolor="black" width="75">
<tbody>
<form action="php-form-processor.php" method="post">
<tr>
<td style="color:black; font-family: Comic sans MS">
<u>Name:</u>
</td>
<td>
<textarea rows="1" cols="33" name="Name" style="color: black; background-color: lightgrey; border-color:black; text-align: left; font-
family: Comic sans MS;">Enter your name</textarea>
</td>
</tr>
<tr>
<td style="color:black; font-family: Comic sans MS">
<u>Date:</u>
</td>
<td>
<textarea rows="1" cols="33" name="Date" style="color: black; background-color: lightgrey; border-color: black; text-align: left; font-
family: Comic sans MS;">Enter the date</textarea>
</td>
</tr>
<tr>
<td style="color:black; font-family: Comic sans MS">
<u>Exercise:</u>
</td>
<td>
<textarea rows="4" cols="38" name="Exercise" style="color: black; background-color: lightgrey; border-color: black; text-align: left;
font-family: Comic sans MS;">Enter exercise and time spent on each</textarea>
</td>
</tr>
<tr>
<td style="color:black; font-family: Comic sans MS">
<u>Breakfast:</u>
</td>
<td>
<textarea rows="4" cols="38" name="Breakfast" style="color: black; background-color: lightgrey; border-color: black; text-align: left;
font-family: Comic sans MS;">Enter your breakfast meal</textarea>
</td>
</tr>
<tr>
<td style="color:black; font-family: Comic sans MS">
<u>Lunch:</u>
</td>
<td>
<textarea rows="4" cols="38" name="Lunch" style="color: black; background-color: lightgrey; border-color: black; text-align: left;
font-family: Comic sans MS;">Enter your lunch meal</textarea>
</td>
</tr>
<tr>
<td style="color:black; font-family: Comic sans MS">
<u>Dinner:</u>
</td>
<td>
<textarea rows="4" cols="38" name="Dinner" style="color: black; background-color: lightgrey; border-color: black; text-align: left;
font-family: Comic sans MS;">Enter your dinner meal</textarea>
</td>
</tr>
<tr>
<td style="color:black; font-family: Comic sans MS">
<u>Snacks:</u>
</td>
<td>
<textarea rows="4" cols="38" name="Snacks" style="color: black; background-color: lightgrey; border-color: black; text-align: left;
font-family: Comic sans MS;">Enter any snacks</textarea>
</td>
</tr>
<tr>
<td style="text-align:center" colspan="2">
<input type="submit" style="font-family:Comic sans MS;font-weight:600" value="Submit Form">
</td>
</tr>
</form>
</tbody>
</table>
那你们觉得怎么样?
更新
我发现当我设置method =&#34; post&#34;时出现错误,当我设置method =&#34; GET&#34;时,根本没有任何反应。希望这有助于识别和解决问题。
错误消息 Here is a pic of the error I get
此图片的方法属性设置为&#34; post&#34;和enctype设置为&#34; text / plain&#34;。