This is a discussion on Search and POST and keywords within the PHP General forums, part of the PHP Programming Forums category; I have been modifying the quote system I have been writing like mad and have hit another brick wall of ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have been modifying the quote system I have been writing like mad and
have hit another brick wall of sorts. I am trying to do a couple of things... The search is now up and running on just a DESCRIPTION field. Anything else at this point is unwieldy. It works perfectly however I am trying to add a piece to the puzzle. What I would LIKE it to do is pass along the keywords back to itself so that when it is called from within itself it can be on the same search terms. I have made the code do this: <input type=\"hidden\" name=\"url\" value=\"$_SERVER[PHP_SELF]\"> <input type=\"hidden\" name=\"keyword\" value=\"keyword\"> These are inputs to another form, which just passed this back header("Location:$_POST[url]"); I guess what I am missing is another way to pass the KEYWORD from the first form to the next part to make it seen by the script. http://www.garlandcnorris.com/quotes I have completely blown the numbers out of proportion, but you can still play with it to see what I mean. I can shoot source out if need be, but this is probably just a stupid mistake on my part. TIA!! Robert ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ There are three kinds of economist. Those who can count, and those who can't. -Eddie George. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ |
|
|||
|
Robert Sossomon wrote:
[ snipped ] > What I would LIKE it to do is pass along the keywords back to itself so > that when it is called from within itself it can be on the same search > terms. > > I have made the code do this: > <input type=\"hidden\" name=\"url\" value=\"$_SERVER[PHP_SELF]\"> <input > type=\"hidden\" name=\"keyword\" value=\"keyword\"> > > These are inputs to another form, which just passed this back > header("Location:$_POST[url]"); > > I guess what I am missing is another way to pass the KEYWORD from the > first form to the next part to make it seen by the script. Have you looked at sessions? I don't see why you don't want to use hidden fields, but sessions would be the next thing to look at. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com |