Category : php

I created my login script to my Android Application this way: import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.widget.Button; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; import com.android.volley.Request; import com.android.volley.Response; import com.android.volley.toolbox.JsonObjectRequest; import com.google.android.material.textfield.TextInputEditText; import com.vishnusivadas.advanced_httpurlconnection.PutData; import org.json.JSONException; import org.json.JSONObject; public class Login extends AppCompatActivity { TextInputEditText textInputEditTextUsername, textInputEditTextPassword; Button buttonLogin; TextView ..

Read more

I am building a website in php which uses sessions. Sessions work fine on my computer using Chrome, Firefox or Opera, but don’t on my Android phone (with Chrome). To try figuring out what the problem was, I added that code at the top of login page (right before the HTML tag): if (isset($_COOKIE["__Host-SSID"])){ $cookieSSID=$_COOKIE["__Host-SSID"]; ..

Read more

I am making an application where I have String which behaves like Array. e.g : String name = " "john","kat" "; I was trying to send them in php server(just sending the string wasn’t converting it to array). <?php if($_SERVER[‘REQUEST_METHOD’]==’POST’){ $names=array($_POST[‘name’]); $phones=array($_POST[‘phone’]); // $names = array("Hw", "V"); // $phones = array("656", "646"); array_map(function ($name, $phone) ..

Read more