Not a FrontPage user myself, but the problem seems pretty evident. The Design View of FrontPage is a WYSIWYG editor. In other words, it interprets the code and renders it how it will look to the end user. Apparently FrontPage does not support PHP so it has no way to descipher the code for display.
The only workaround that I can think of which *might* work would be to include the php code within script tags or comment tags:
<script> <?php ... php code ?> </script>
Actually I think the comment approach would be the best.
interesting comment about FP not coping with PHP code ... i use Namo Webeditor and i have no problems with PHP even though it can't process it ... it still allows me to work with the pages in design mode
your suggestions did not work in the sense that if i did either one, then the php script would not run ... just letting you know
i did find an answer by googling the problem ... it was a case of letting FP know what to do with the php files
here is the info i got, in case others have the same problem:
- On the Tools menu, click Options, and then click the Configure Editors tab. - In the Extensions list, locate and select the file extension that you want to use. - In the Editors list, select FrontPage (Open as HTML). - Click Make Default. If the extension that you want does not appear, you must add it.