Jump to content

_post value is lost after paginate


mrbitsinfo

Recommended Posts

kinda new in php so hope somebody can help me im about to get mad with this

i have 2 pages index.htm and list_tbl.php

in the index.htm i have a textbox so the customers write what they want to find in my site with a search button like this :

 

<form id="form1" name="form1" method="post" action="list_tbl.php" target="_blank">

 

in the list_tbl.php is like this

 

<?php

$srch = $_POST['prod_search'];

$se = "%";

'$all' = $se.$srch.$se;

$msj="You look for : ";

$msj2=$mensaj.$srch;

$regis="  your search match :";

$regis2=" Items";

 

$conn = mysql_connect('localhost','root','pass') or trigger_error("tbl_die", E_USER_ERROR);

.

.

.

.

.

works fine if i write 4 example "blue metal" in the index the php page get me

 

You Look for blue metal  Your search match XX items

 

but if the filter get more then 1 page when i clik in the next link the filter is gone

the "blue metal" string is lost and i have all the items in the table

 

why the $_post Value is lost after paginate???

 

1000 TNX

 

Link to comment
https://forums.phpfreaks.com/topic/221811-_post-value-is-lost-after-paginate/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.