How to store table data using cookies on webpage

Hello,

I have created a web portal in that portal i’m entering a number it will check that data at these point is valid or not if it is not valid it will create a table on webpage. -

Suppose i have 10 nos and on portal i’m entering a no from image map while entering it’ll check if it’ll valid will show data is not valid and create a table but when i’ll enter 2nd no it’ll remove the first one so i want that when i enter 1 no and it is not valid it’ll show in table till i’ll not enter the same no again. can anyone help me i never worked with cookies before.

Do you have any code or image of the portal because it is difficult to understand what do you want?

if ($dat > 0 && $data > 0) {
   echo "\n" . "data is valid : dual band" . "\n";

}elseif($dat>0 && $data ==0){
	echo "\n" . "data is not valid : 2.4Ghz frequency" . "\n"; 
	
	?>
	<table div align="right" style="width:10%">
  <tr>
    <th>5Ghz</th>
  </tr>
  <tr>
  <td><?php echo $Lanmark ?></td>
  </tr>
  </table>

if i’m entering any no and data at that point is valid or not its is showing on top os map i want that like i entered 10 and data is not valid it should show same table then next time when i’m entering another no and it is also not valid then it should show 2 nd value 0n output similar to the image.

thanks Arpita

If you use Angular JS, I suggest to use Local Storage Service. You can Google search for how to use it.
We have used localStorageService to our website product, safe us a lot of time.

OK.

Thanks, Will it be like if in table i have 3 nos and it is showing all 3 nos on webpage and when i’ll enter the same no again it will remove that no from table.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.