简体   繁体   English

从一个PHP脚本获取变量到另一个

[英]Get variables from one php script to another

I have three activities in android studio!The first holds the password and email EditTexts,the second holds a button 'pause'.The third activity holds a text. 我在android studio中进行了三个活动!第一个活动包含密码和电子邮件EditTexts,第二个活动包含“暂停”按钮。第三个活动中包含文本。 How to get the values of email and password when I click the button pause on second screen using php script?I am using a MYSQL database and a table inside of this database with email,password and pause. 当我使用php脚本在第二个屏幕上单击“暂停”按钮时,如何获取电子邮件和密码的值?我正在使用一个MySQL数据库以及该数据库中的一个带有电子邮件,密码和暂停的表。

May be you are looking for passing data from one activity to another. 可能是您正在寻找将数据从一个活动传递到另一个活动的信息。 You can do that like below 你可以像下面这样

Intent foo = new Intent(currentActivity.this, secondActivity.class);
foo.putExtra("Email", mail);
startActivity(foo);

If you want to save on a database you can use volley package for GET and POST data from and to a server. 如果要保存在数据库上,则可以使用凌空软件包从服务器到服务器的GET和POST数据。 I hope you are looking for the first one. 希望您正在寻找第一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM