I want to show differenet content depending on the variable passed to the script
$command = $_POST["command"];
if ($command == "Edit") {
?>
CONTENT 1
<?
} elseif ($command == "Delete") {
?>
CONTENT 2
<?php
} else
?>
CONTENT 3
<?php
}
?>
Where am i going wrong?
You must read your code several times carefully to check any obvious errors.
In this case, you didn’t write
{afterelse. 🙁} else->} else {