how to determine on which page the user is in q2a ? -question2answer

1 Answer

Answer :

The best way for this is to use request() Example : if (qa_request() === 'login') {      echo 'This is the login page';  } else {      echo 'This is not the login page';  } or if (qa_request() === 'account') {      echo 'This is the accountpage';  } else {      echo 'This is not the account page';  } This will work ...

Related questions

Description : how to get base url in q2a ? -question2answer

Last Answer : qa_path_to_root(); This function can be used to get the root url of the q2a site

Description : qa_post_delete how to use this function - q2a -question2answer

Last Answer : Structure of this function : qa_post_delete ($postid) will delete $postid from the database, hiding it first if appropriate. Just provide the post id and you are done ... good to go now. More information :- Parameters : 1 Function : qa_post_delete

Description : Do web sites need a user agreement page?

Last Answer : it matters what kind of page it is, but usually web pages that need a certain age minimum or any other law stuff a user agreement page is necessary

Description : On Internet, to go to other Web page through button, the user should use (a) Search tools (b) Find and replace -Technology

Last Answer : (d) On the Internet, to go to other Web pages available through a button, the user should use hyperlinks.

Description : You should include a mailto function in the body of your document to allow user to respond to your Web page. -Technology

Last Answer : True The mailto function is used to send E-mails from the Website.

Description : Why It is mandatory to include a banner marking at the top of the page to alert the user that CUI is present?

Last Answer : TRUE

Description : I'm an admin on my company's Facebook Page, yet "User Is Not Authorized To Edit App settings." Why?

Last Answer : Need Answer

Description : Soft Pages breaks __________: a) are induced by the user b) are inserted by word automatically at the end of the page c) can be deleted d) are the one to show end of paragraph e) None of The Above

Last Answer : b) are inserted by word automatically at the end of the page

Description : The most common user identification technique is via? A. Sessions B. Cookies C. Segmentation D. page views

Last Answer : B. Cookies

Description : In order to identify the users, web analytics tools need to report on? A. user sessions B. Unique users C. Page Views D. All of the above

Last Answer : A. user sessions

Description : At stage of user browsing app store page of your app what is the objective? A. Maximize usage B. Maximize conversion C. Maximize interest D. All of the above

Last Answer : B. Maximize conversion

Description : How can the user determine what programs are available on a computer? 1) Checking the hard disk properties 2) Viewing the installed programs during the booting process 11 3) Checking the operating system ... of installed programs. 4) Checking the existing files saved on the disk 5) None of these

Last Answer : Answer :4

Description : Write a program to accept a string as input from user and determine its length. [Don’t use built in library function strlen()]

Last Answer : #include #include void main(){ char str[50]; int i, len=0; clrscr(); printf("Enter a string"); scanf("%s",&str); for(i=0; str[i]!='\0'; i++){ len++; } printf("The length of string is %d",len); getch(); }

Description : Which of the following algorithm is used by Google to determine the importance of a particular page? a) SVD b) PageRank c) FastMap d) All of the mentioned

Last Answer : PageRank

Description : Which of the following algorithm is used by Google to determine the importance of a particular page? a) SVD b) PageRank c) FastMap d) All of the mentioned

Last Answer : PageRank