|
I need to send a variable to a php script from html and then have the script output somthing based on what the variable was. I found some code that looks like this:
<?php
if ($var="001") $output="<b>a!</b><br>";
if ($var="002") $output="<b>b!</b><br>";
if ($var="003") $output="<b>c!</b><br>";
print "$output"
?>
But it doesn't work...it just prints the last $output (c!)
Please help ASAP!
Cheers
Chris
|