Android Question Multiple entries in POST?

techknight

Well-Known Member
Licensed User
Longtime User
I am using okHTTPutils to talk to my PHP scripts on the server.

Well, I currently have my username and password hash in the GET tags. So I actually want to move those to POST for obvious reasons.

Problem is, I dont see any documentation how you can put multiple entries in a POST like you can GET?
 

DonManfred

Expert
Licensed User
Longtime User
Problem is, I dont see any documentation how you can put multiple entries in a POST like you can GET?
i dont understand the question

What exactly you want archieve?
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
B4X:
$new_loads = $_POST['new_loads']; 
$new_firstname = $_POST['new_firstname'];
$new_lastname = $_POST['new_lastname'];
$new_organization = $_POST['new_organization'];
$new_email = $_POST['new_email'];
$new_usertype = $_POST['new_usertype'];

I just discovered PostMultiPart which I THINK will make it work.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
if you use .postString you just use

B4X:
 dlj.postString(url,"username="& userhash &"&password="& passhash)

multipart is something else and not needed for what you want to do.
 
Upvote 0
Top