Hello,
I have a snippet of PHP code that should create an array of form radio buttons and then use the selection to generate a server hostname/URL but even though I know the code works on some php instances, it doesn’t seem to be working on mine. I was wondering if I have the syntax wrong somehow and that maybe my instance is less forgiving?? Any help appreciated…
[php]<? for($x = 0; $x <= 7; $x++) {
echo “<input id=“radiogroup” . $x .”" class=“element radio2” name=“smtpServer” type=“radio” value=“server” . $x . “.domain.com” />" .$x. " ";
}
?>[/php]
It should look like the attachment but instead just shows as:
- " .$x. " "; } ?>
EDIT: Solved my own issue here, forgot to declare it php at the start!