PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

PHP includes not showing up in search_template.html

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    As noted in the FAQ:

    If you have search forms placed elsewhere on your website which was previously pointing to "search.php" (or "search.asp", etc.) then you will need to update their action= attribute to point them to your new search page (e.g. "mysearch.php").
    Your search form is submitting to "search.php"

    It should be changed to submit to "mysearch.php"

    At the moment, a search for "vase" goes here:
    http://freddo.bf.rmit.edu.au/~s3198941/Assignment2/Website/search.php?zoom_query=vase

    When it should go here:
    http://freddo.bf.rmit.edu.au/~s3198941/Assignment2/Website/mysearch.php?zoom_query=vase

    When you go to the latter URL, you will see the following error:

    Fatal error: Call to undefined function virtual()
    This indicates that the virtual() operation is not available on your web server, as described here. As noted in our FAQ, you can use include() instead. So replace the line:

    <?php virtual("search.php"); ?>

    With this:

    <?php include("search.php"); ?>
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    Working...
    X