Hi Orla,
We'll get there in the end!! I looked back in your full listing and noticed ...
1) I assumed you were using the GET method on your form, but you're actually using POST, so change to the line ...
$mnucategory = isset($GET['mnucategory'])? $GET['mnucategory']: 0;
... to ...
$mnucategory = isset($POST['mnucategory'])? $POST['mnucategory']: 0;
... and while you're at it, put this line near or at the top of the page. It's a global and affects the page in a major way ... should deal with asap.
2) The line ...
echo '<p>
<select name=\"mnucategory\" id=\"mnucategory\" onchange='this.form.submit();'>
<option value="0"'.($mnucategory == 0? ' SELECTED': '').'>Choose a Category</option>';
... has gone a bit pear-shaped ... should be ...
echo '<p>
<select name="mnucategory" id="mnucategory" onchange="this.form.submit();">
<option value="0"'.($mnucategory == 0? ' SELECTED': '').'>Choose a Category</option>';
The thing with single- and double-quotes is this:
Double-quoted strings allow you to embed variables, while single-quoted ones don't.
So ...
$name = 'paul';
// Embedding variable in string
// Double
echo "Hello, $name<br />"; // Works - often used
echo "Hello, ".$name."<br />";// Works
// Single
echo 'Hello, $name<br />'; // Doesn't embed
echo 'Hello, '.$name.'<br />'; // My method
// Using quotes in string
// Double
echo "<font size=\"1\">Hello</font><br />"; // Works - often used
echo "<font size='2'>Hello</font><br />"; // Works
// echo "<font size="3">Hello</font><br />"; // Doesn't work
// Single
echo '<font size="4">Hello</font><br />'; // My method
echo '<font size=\'5 \'>Hello</font><br />'; // Works
// echo '<font size='6'>Hello</font><br />'; // Doesn't work
It's up to you which you use, but for me single-quotes all the time ... never embed variables. It's easier to read and easier to write HTML.
Hope that does it!!
Paul.