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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.