How to transform this HTML form into an android code ?

  • Replies:0
Momo
  • Forum posts: 1

Jan 13, 2012, 1:28:56 PM via Website

Hi ,
I know this may seem weird, but I have a php script that accepts two parameters. I have coded a small html device to simulate the android device.
The form looks like :

1<form action="http://91.205.172.104/handyproofnew/php/ajax_response.php" method="get" enctype="multipart/form-data">
2 <fieldset>
3 <legend>Upload Image</legend>
4 <input type="hidden" name="act" value="check_image" />
5 <input type="file" name="file" /><br />
6 <input type="submit" value="Check" />
7 </fieldset>
8 </form>

I need my android to post them to php server, mainly the act=check_image and the file="the sent image file"
I need also to use httpurlconnection to do it...

I hope I am posting and asking it right....

Thank for any help

— modified on Jan 13, 2012, 1:56:48 PM

Reply