Fork me on GitHub

Alternate Search Method For htmlpages??? (Looking For One)  Bottom

  • I was thinking of a different method to do a search of htmlpages... What I would like to do is make an HTML block with a search box in it. It would be nice if I could make it so that it would scan htmlpages titles and and display the htmlpage PID.

    For instance....

    A user searches for S6011 in the block
    The search would scan all the titles of the htmlpages for the one titled S6011
    When it was found, that page would automatically be displayed if found.
    Otherwise a "Could Not Be Found" page would be displayed.

    Maybe is might be as simple as scanning the pn_htmlpages mySQL table in the title column and using the corresponding PID from the pid column where '#' is in the following link...

    http://www.divinelighting.net/index.php?module=htmlpages&func=display&pid=#

    Im a complete noob at this :(

  • create and HTML block:

    Code

    <form action="index.php?module=htmlpages&amp;func=display" method="get">
    <div>
    <label for="html_pid">Page ID:</label>
    <input id="html_pid" type="text"  name="pid" />
    <input type="submit" value="submit" />
    </div>
    </form>


    ..that should work fine.

    bye :)



    edited by: InvalidResponse, Nov 10, 2006 - 08:55 PM
  • 0 users

This list is based on users active over the last 60 minutes.