Skip to first unread message

ShadowKM Du

unread,
Oct 9, 2014, 5:51:33 AM10/9/14
to mitappinv...@googlegroups.com
Hi all

I'm trying to develop an app to login MRBS, which uses php form as login method:



<div id="contents">
<form class="form_general" id="logon" method="post" action="admin.php">
<fieldset>
<legend>Please log in</legend>
<div>
<label for="NewUserName">Name:</label>
<input type="text" id="NewUserName" name="NewUserName">
</div>
<div>
<label for="NewUserPassword">Password:</label>
<input type="password" id="NewUserPassword" name="NewUserPassword">
</div>
<input type="hidden" name="returl" value="http://mrbs.sourceforge.net/mrbs/day.php?year=2014&amp;month=10&amp;day=09&amp;area=829&amp;room=1814&amp;returl=http%3A%2F%2Fmrbs.sourceforge.net%2Fmrbs%2Fday.php%3Fyear%3D2014%26month%3D10%26day%3D09%26area%3D829%26room%3D1814">
<input type="hidden" name="TargetURL" value="day.php?year=2014&amp;month=10&amp;day=09&amp;area=829&amp;room=1814&amp;returl=http%3A%2F%2Fmrbs.sourceforge.net%2Fmrbs%2Fday.php%3Fyear%3D2014%26month%3D10%26day%3D09%26area%3D829%26room%3D1814">
<input type="hidden" name="Action" value="SetName">
<div id="logon_submit">
<input class="submit" type="submit" value=" Log in ">
</div>
</fieldset>
</form>


So I think I should able to login with web component by post text to this admin.php with "NewUserName=demo1&NewUserPassword=demo"
But it doesnt work. I'm not sure whether i need to encode the password or   i used the wrong method.

Any help would be appreciated.

Thank you.

Taifun

unread,
Oct 9, 2014, 1:24:10 PM10/9/14
to mitappinv...@googlegroups.com
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Reply all
Reply to author
Forward
0 new messages