one button for login webpage php

fifiddu70

Well-Known Member
Licensed User
Longtime User
I have a website in php with a user field and a password field, I would like to create a button that let me in without entering directly onto the page each time the user name and password, how do I?
 

fifiddu70

Well-Known Member
Licensed User
Longtime User
I can not make it work, this is the address of the page that interests me log in automatically at the touch of a button http://subagent.secureplay.info I would like to create a button where do log in automatically, using a username and a password
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
Things are a bit trickier here:

1) My desktop browser warns me that that web page is untrusted and not to visit it!

2) The form in the web page has no id so cannot be directly referenced in javascript.

3) Opening the web page in a WebView shows a blank white page with the text 'Moved Permanently'.

Looks like the web site detects a mobile WebView and redirects it, but does not redirect a desktop browser.
This is the code i was trying to test:

B4X:
Code attached as code_sample.txt as forum doesn't allow javascript in forum posts

You can see i was trying to reference the form as document.forms[0] to workaround the fact that the form has no id by which i can reference it.

Try changing the url to: https://subagent2.secureplay.info:443/ and it submits but then reports 'Web page not available'.
I've attached the code if you want to try it yourself.

Martin.
 

Attachments

  • WebViewLogin_fifidu70.zip
    6 KB · Views: 247
  • code_sample.txt
    1.2 KB · Views: 272
Upvote 0
Top