Can someone tell me what the syntax error is with this script?
[php]<?php
if ($form->data[‘serial_number’]) !== ($form->data[‘serial_number’]) {
$mainframe->redirect(‘index.php?option=com_chronoforms&chronoforms=view_code’);
}
?> [/php]
Can someone tell me what the syntax error is with this script?
[php]<?php
if ($form->data[‘serial_number’]) !== ($form->data[‘serial_number’]) {
$mainframe->redirect(‘index.php?option=com_chronoforms&chronoforms=view_code’);
}
?> [/php]
[php]) !== ([/php]
Parentheses do not belong here
[php]
if ($form->data[‘serial_number’] !== $form->data[‘serial_number’]) {
[/php]
Thanks for your reply, however, it only moves the syntax error to the next line down. Any ideas?
What does the error say? There is nothing in the code posted that would suggest another syntax error.