Bluehost.com Web Hosting $6.95

Search and POST and keywords

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


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-03-2003
Robert Sossomon
 
Posts: n/a
Default Search and POST and keywords

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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
Reply With Quote
  #2 (permalink)  
Old 11-03-2003
Burhan Khalid
 
Posts: n/a
Default Re: [PHP] Search and POST and keywords

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0