mrbitsinfo Posted December 15, 2010 Share Posted December 15, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/221811-_post-value-is-lost-after-paginate/ Share on other sites More sharing options...
trq Posted December 16, 2010 Share Posted December 16, 2010 why the $_post Value is lost after paginate??? because it is only posted to the first page. Quote Link to comment https://forums.phpfreaks.com/topic/221811-_post-value-is-lost-after-paginate/#findComment-1147969 Share on other sites More sharing options...
mrbitsinfo Posted December 16, 2010 Author Share Posted December 16, 2010 i c how can i fix it so it be available in all pages when i click on next or prev links?? Quote Link to comment https://forums.phpfreaks.com/topic/221811-_post-value-is-lost-after-paginate/#findComment-1148356 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.