[Phpwm] display results on same page
david at codepoets.co.uk
Thu Jul 19 10:07:01 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
> 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 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
-----END PGP SIGNATURE-----
More information about the Phpwm