[Phpwm] display results on same page

David Goodwin david at codepoets.co.uk
Thu Jul 19 10:07:01 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ire wrote:
> Hi guys,
> I'm struggling with this much longer than I think I need to, I guess you
> could help me here:
> How do I make the results of a search display on the same page as the
> search, sort of beneath the 'submit' button? Thanks for helping out.
> 


Make the form on the page post/get to itself; and check to see whether
there was a search called (e.g was it a post request, or was it a get
request with $parameter set).

IF there was a search requested, then you can easily display the results
where ever you like.

Alternatively, you could take the 'AJAX' route, and have the 'search'
bit done by another script.

David.
- --
David Goodwin

[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk       ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGnymq/ISo3RF5V6YRAj2XAJ92fTI73eAfCqQGYrae8EELmwsN5ACgww9X
ID2hM6qFxwGHdbK4uf3masI=
=Zfin
-----END PGP SIGNATURE-----



More information about the Phpwm mailing list