- Forum posts: 77
Aug 17, 2016, 1:31:36 PM via Website
Aug 17, 2016 1:31:36 PM via Website
How to find the url of localhost to submit data to database from form??
Aug 17, 2016, 1:31:36 PM via Website
Aug 17, 2016 1:31:36 PM via Website
How to find the url of localhost to submit data to database from form??
Aug 25, 2016, 12:12:36 PM via Website
Aug 25, 2016 12:12:36 PM via Website
If you're running Apache, you'll find it in https.conf configuration file. Default HTTP port is 80.
Aug 25, 2016, 2:48:28 PM via Website
Aug 25, 2016 2:48:28 PM via Website
Thnx for the reply..
But what is the url, that enter in the java code???
Aug 26, 2016, 2:03:14 PM via Website
Aug 26, 2016 2:03:14 PM via Website
are you trying to access from your android device to localhost?
Aug 26, 2016, 2:13:31 PM via Website
Aug 26, 2016 2:13:31 PM via Website
Actually, I'm developing a registration form in android using android studio in windows and I have to
add insert the user data to xampp mysql database..
— modified on Aug 26, 2016, 2:16:56 PM
Aug 26, 2016, 2:15:50 PM via Website
Aug 26, 2016 2:15:50 PM via Website
Then you need your public IP, or I think it can work pointing to http://127.0.0.1:80
Aug 26, 2016, 2:17:15 PM via Website
Aug 26, 2016 2:17:15 PM via Website
Actually, I'm developing a registration form in android using android studio in windows and I have to
add insert the user data to xampp mysql database..
Aug 29, 2016, 8:20:41 AM via Website
Aug 29, 2016 8:20:41 AM via Website
Then, you'll have to code the server part (in PHP for example), in order to catch the POST request sent from your Android app.
It'll go like:
- Your Android app posts registration data to your server
- Your server (a PHP app), receives the data and save it to your database (if you're using XAMPP probably it's a MySQL)
Aug 29, 2016, 8:37:25 AM via Website
Aug 29, 2016 8:37:25 AM via Website
Ok... using the php script I can add data to the database.. But when the I think I have problem with the communication between android studio and php script. I think it may be the url for localhost specified in the javacode..
Oct 6, 2016, 2:01:37 PM via Website
Oct 6, 2016 2:01:37 PM via Website
In case you're running Apache, you'll see it in https.conf design document. Default HTTP port is 80.
Oct 6, 2016, 2:38:40 PM via Website
Oct 6, 2016 2:38:40 PM via Website
Yeah.. I got the answer. . my port was 443: and its working....
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.