Hi,
I am a new drupal user and I am using drupal to create a prototype product support site. I am comfortable with html but my scripting and php skills are limited. I've searched the forums a bit for help with this but haven't found all the answers I need.
My idea is to have support and engineering create content pages and classify them using the following vocabularies: product, info (faq, bulletin, etc.), and download (patch, tool, etc.). Then customers can select and view relevant pages by using a form that selects desired terms from the vocabularies.
So far I have done the following:
- created vocabularies.
- Stole an PHP snippet to display pages based on particular taxo_ids. This works fine.
- created a form and a php action script to select a particular term and display the term. This works, but the term is displayed as a plain html page with no theme or template. Here's the form:
NOTE: In order to get my post submitted without getting a "suspicious data" error (wow ... annoying!), in my code examples I have replaced most open and close angle brackets with *...+. Sorry if this makes the code hard to read.
*html+*body+
<h4>Term select form test</h4>
*form action="files/termformtest.php" method="post"+
*select name="product"+
*option+term 1*/option+
*option+term 2*/option+
*/select+
*input type="submit" /+
*/form+
*/body+*/html+
Here's the script:
*html>*body>
*?php
$product = $_POST['product'];
echo "Product = " . $product .".*br />";
?>
*/body>*/html>
- modified the script by pasting in the php snippet mentioned above. With some help, this would display the pages in the db associated with the selected term. Right now I get: query_db() undefined. Here's the new script:
*html+*body+
<?php
$product = $_POST['product'];
echo "Product = " . $product .".