How to find the url of localhost to submit data to database from form??
- Forum posts: 16
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.
Thnx for the reply..
But what is the url, that enter in the java code???
- Forum posts: 16
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?
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
- Forum posts: 16
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
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..
- Forum posts: 16
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)
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..
In case you're running Apache, you'll see it in https.conf design document. Default HTTP port is 80.
Yeah.. I got the answer. . my port was 443: and its working....