Set up your PHP to use <script language="php"> and </script>
instead of <? ?> as your script tags - FP will ignore all scripts
PS
IMHO
you are using poor coding technique when you create "part of your html" in PHP and the rest in Html
- the entire PHP code should open and close the table
- thus FP will leave it alone and you are less prone to causing a broken tag pair between PHP and Html
In general all server side coding should be valid stand alone html
--
| Hi Stefan, thanks for keeping the thread alive.
| It's driving me crazy and I'd really like to find a solution to allow me to
| edit in FrontPage without having to open another editor.
|
| > See
|
http://www.microsoft.com/frontpage/downloads/addin/launchupdate/default.asp
|
| I've checked the addin page you suggested but it's not clear to me if an
| add-in exists that will modify FP to leave the code alone.
| If you have any ideas let me know.
|
| I do have a work-around:
| Open the php page in an editor, paste into NEW page in FP WITHOUT saving,
| make changes, paste back into editor and save.
| But wouldn't it me so much nicer if FP didn't take things into its own hands
| and try to "help out" so to speak?
|
| > Then the entire PHP code segment should be unaffected by FP
| > Sounds like you are mixing html and PHP causing FP to parse the html
| > Post your PHP snippet
|
| Here is the code where the php begins:
|
| <?
| $i=0;
| while($row = mysql_fetch_array($result))
| {
| $i++;
| echo " <tr bgcolor=\"$coloreinttabelle\">\n";
| echo " <td><span class = \"testo\"><img
| src=\"images/stainless_steel_bars.gif\"> <b><a
| href=\"product_search3.php?idcatprodotti=2&idsubcatprodotti=$row[idsubcatpro
| dotti]&subcatprodotti=$row[productsubcat]&categoriaprodotti=Stainless
| Steels\">$row[productsubcat]</a></b><br> $row[description]</span></td>\n";
| echo " </tr>\n";
| }
| mysql_free_result($result);
|
| //chiudo connessione al database che fa freddo
| mysql_close ($connessione);
|
| ?>
|
|
|
| > | > | | > | > | > This simple line from a page in php:
| > | > | >
| > | > | > <img src=\"images/stainless_steel_bars.gif\">
| > | > | >
| > | > | > gets changed to this:
| > | > | >
| > | > | > <img src=%22images/stainless_steel_bars.gif/%22>
| > | > | >
| > | > | > every time I save the page in front page!
| > | > | >
| > | > | > How can I tell Frontpage NOT to change the code?
|
|