Hi,
You have intermixed PHP with HTML. This won't work.
DirectPHP is a very straightforward plugin that simply grabs your PHP statements and pump it through the default PHP's eval() command.
PHP's eval() statement parses ONLY php statements. It does not parse a mix of PHP and HTML. Hence your statements will not be parsed.
For your case, just change your statements into pure PHP, e.g.
| Code: |
<?php
$submitValue= JRequest::getVar('submit');
echo "submitValue: " . $submitValue;
if ($submitValue == 1) {
echo 'Your request has been submitted. We will contact you as soon as possible';
} else {
echo '{loadposition content_request_speaker}';
}
|
Regards,
/kksou