Hi,
I'm making an app for reading and posting on an old webforum.
Now i have come to the "posting a reply" part, and i´m really stuck.
I have read Erels example on multipart/formdata request, but i don´t understand how to do that.
Can someone please help me understand how to send the multipart formdata??
//btbb
Here is the multipart/formdata from the website:
I'm making an app for reading and posting on an old webforum.
Now i have come to the "posting a reply" part, and i´m really stuck.
I have read Erels example on multipart/formdata request, but i don´t understand how to do that.
Can someone please help me understand how to send the multipart formdata??
//btbb
Here is the multipart/formdata from the website:
B4X:
<form action="validate.asp" method="post" enctype="multipart/form-data" name="newmessage" onSubmit="return validate()" >
<p>
<input type="hidden" name="messagetype" value="y">
<input type="hidden" name="messageid" value="18969">
<input type="hidden" name="replyid" value="117114">
</p>
<div align="left"></div>
<table border="0" width="600">
<tr>
<td width="100%"> <h1 align="left">
Svara på inlägg
</h1></td>
</tr>
<tr>
<td><table border="0" cellpadding="2" cellspacing="2" width="545"
bgcolor="#FFFFFF">
<tr>
<td width="18%" align="right" valign="top" bgcolor="#EEEEFF">
<div align="left">
<script language="JavaScript1.1">
<!--
document.newmessage.author.focus();
// -->
</script>
<font face="Verdana, MS Sans Serif, Arial" size="2" color="#000000"><strong><nobr>Rubrik:</nobr></strong></div></td>
<td width="82%" valign="top" bgcolor="#EEEEFF">
<input name="messagesubject"
value="Styrservopump Chevrolet" size="35">
</td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#EEEEFF"><div align="left"><font face="Verdana, MS Sans Serif, Arial" size="2" color="#000000"><strong><nobr>Meddelande:</nobr></strong></div></td>
<td width="82%" valign="top" bgcolor="#EEEEFF">
<p>
<textarea rows="8" name="messagetext" cols="50"></textarea>
</p></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#EEEEFF"><div align="left"><font face="Verdana, MS Sans Serif, Arial" size="2" color="#000000"><strong><nobr>Infoga bild:</nobr></strong></div></td>
<td valign="top" bgcolor="#EEEEFF">
<p>
<input type="file" name="thefile">
<input type="hidden" name="fname" value="20130709_130846">
</p></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#EEEEFF"><div align="left"><font face="Verdana, MS Sans Serif, Arial" size="2" color="#000000"><strong><nobr>Länk:</nobr></strong></div></td>
<td width="82%" valign="top" bgcolor="#EEEEFF">
<p> http://
<input name="link" type="text" value="" size="42">
</p></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#EEEEFF"><div align="left"><font face="Verdana, MS Sans Serif, Arial" size="2" color="#000000"><strong><nobr>Film </nobr></strong><nobr>(Youtube)</nobr><strong><nobr>:</nobr></strong></div></td>
<td width="82%" valign="top" bgcolor="#EEEEFF">
<p>
<input name="film" type="text" value="" size="50">
<br>
(länk från <a href="http://www.youtube.com/" target="_blank">Youtube</a>,
lägg in länken som visas under "Dela")
</p></td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center"><center>
</center></div><div align="center"><center>
<p>
<input type="hidden" name="ip" value="11.111.111.111">
<input type="hidden" name="ReplyParent" value="117114">
<input type="hidden" name="intUsrID" value="2033">
<input type="hidden" name="txtUsrName" value="btbb76">
<input name="submit" type="submit" value=" Skicka inlägg ">
</p>
</center></div>
</form>