Welcome Guest, Not a member yet? Register   Sign In
Help storing and calling a cookie correctly
#2

[eluser]erik.brannstrom[/eluser]
Why do you use cookies to store the value? I assume the search is performed using a standard form? If so, the value of your search is right in the $_POST variable. Just add something like
Code:
<input type="text" name="query" value="<?= isset($_POST['query']) ? $_POST['query'] : '' ?>" />
Wouldn't this work out?


Messages In This Thread
Help storing and calling a cookie correctly - by El Forum - 08-18-2008, 10:52 AM
Help storing and calling a cookie correctly - by El Forum - 08-18-2008, 11:30 AM
Help storing and calling a cookie correctly - by El Forum - 08-18-2008, 12:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB