
Originally Posted by
divanov
As I expected, you connect finished signal to finishedSlot every time your press button. Instead it should be done once. when you create QNetworkAccessManager.
Hi,
Divanov thank u very much .. Now My repetation problem of Msg Box Is solved 
I have placed the code:
Code:
connect(nam,SIGNAL(finished(QNetworkReply*)),this,SLOT(finishedSlot(QNetworkReply*))); when I create QNetworkAccessManager.And removed it from loginCheck() SLOT
One more thing is there any problem in getting "false" as string reply from PHP server.Because When I hit URL I am able to Display UID =1 as reply in MSG BOX. But When "false" is sent as reply I get Empty String I have debugged my application and seen it.
When UID =2 is returned I get:
Code:
string = L"\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\tUID =2"
When false is returned I get:
Code:
string = L"\r\n\r\n\t\t"
Below is the URL:
Code:
http://124.247.237.173/push%20it/actionworkerlogin.php?txtemail=abc&txtpwd=aaa
It gives false as reply.But I am getting empty string in :
Code:
QByteArray bytes = reply->readAll();
QString string(bytes); // string
QString tristr= string.trimmed();
QMessageBox::information(this,"info",tristr);//display Reply
Thanks once Agian
Regards,
Vishal