fifiddu70 Well-Known Member Licensed User Longtime User Oct 11, 2012 #1 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?
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?
warwound Expert Licensed User Longtime User Oct 11, 2012 #2 Take a look at this recent post of mine: http://www.b4x.com/forum/basic4andr...ow-load-url-username-password.html#post128223 Martin. Upvote 0
Take a look at this recent post of mine: http://www.b4x.com/forum/basic4andr...ow-load-url-username-password.html#post128223 Martin.
fifiddu70 Well-Known Member Licensed User Longtime User Oct 12, 2012 #3 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
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
warwound Expert Licensed User Longtime User Oct 12, 2012 #4 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: Code: 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 WebViewLogin_fifidu70.zip 6 KB · Views: 361 code_sample.txt code_sample.txt 1.2 KB · Views: 416 Upvote 0
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: Code: 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.