Return to PREVIOUS screen without losing "INFORMATION" from the previous screen

-1

I have Screen 01, I search and return the result on the screen. Each line of the returned result contains a button.

The button refers to SCREEN 02. On screen 02 I make a search and the search values are returned in SCREEN 02 itself. Each line returned from the result contains a button.

I would like to click on this button of SCREEN 02 and return to SCREEN 01 NOW WITH RESULT OF SCREEN RESEARCH 01 DONE (STEP 02).

Below are pictures to TRY to illustrate the sequence and intended result:

Clickthebuttonandsearch:

ClicktheMARKbuttonandgotoSCREEN02:

ClickONSEARCHFORSCREEN02andreturnmethesearch:

How to proceed by clicking on the MARK button in SCREEN 02, return to SCREEN 01 STEP 02 ? In this case, GILBERT WILL APPEAR ON the blank space on screen 01.

    
asked by anonymous 15.08.2017 / 18:01

2 answers

0

Your question can be solved by javascript / html5. This is the solution I would implement: screen 2 would be modal (would open on screen 1). When the user clicks on the button the required data on screen 1 would be read on screen two and populated the respective fields on screen 1. If any information has to be written to the server, you can do it by ajax.

Link to build a modal window: link

Another solution would be to use cookies or web storage.

    
15.08.2017 / 23:04
0

You can use a PHP session

Page 1:

session_start()
$_SESSION['valor1'] = $valor1;

Call value on page 2:

session_start() //inicia sessao
echo $_SESSION['valor1']; // Valor já pode ser solicitado
    
16.08.2017 / 01:26