I am looking at event line 4
Not sure how that is suppose to work.
When I run the MFA in windows I never get the submit button to light up so I can click it.
Another thing - I had a problem like that with html5 -
it would work for PC but not for html5 -
And it was because CORS was not enable in my server.
Sometimes you need to enable that in your php code.
Try it out that might be the problem. here is the video how to do it.
I just tried your application and realized that the values passed to the url from the combo boxes and text should be URL encoded, or else you will have problems on android.
Special characters like space have to be converted to %20 for example...
This could be easily fixed by using the GET object function called URLEncode$( "Get object", >The text from the inputs<)
Your URL should look like:
"http://fakedomain.com/primary/new.php" + "?name=" + URLEncode$( "Get object", Combo Select$( "Combo Box" ) ) + "&school=" + URLEncode$( "Get object", Combo Select$( "Combo Box 2" ) ) + "&worklog=" + URLEncode$( "Get object", Edittext$( "Edit Box" ) ) + "&time=" + URLEncode$( "Get object", string$( "Time" ) )
Replace the fakedomain.com with your server domain
You will still have some issues with text using single quotes... you should convert the single quotes character by using the html equivalent code ( ' ) just to be safe and prevent some hacking attempts.
I did not test it, but try replacing ' with '
You can use the String Parser object for this and you should use it on the Edit Box value because this is the only field with custom values from the user.
Thanks guys. It's not the CORS thing - tried that.
I also replaced the code with MPnetbox suggestion, although now data doesn't seem to post from android or PC.
Someone must have got it working as there are four entries in my database ("double quote test", "working on mobile device") etc (assuming that was MPnetbox) I'll keep trying though!
I just downloaded your file and tested it on PC... but it doesn't seem to be working. Can you post another file?
(this is the basic file without the URL ENCODES)
in any case, you need to choose a name, school and press the start and then stop and have some text in the edit box before the submit button shows up.
to view results, use http://www.boallama.co.uk/primary/display.php
I just finished fixing your application and is now submitting the data to the server. I even fixed the single quoting issues so that it won't break the sql query.
Hope that this will fix all your submitting issues
absolute legend! working great thanks and i learnt a bit along the way.