[FX.php List] fx.php and BBEdit Syntax Checking

Erik Andreas Cayré erik at cayre.dk
Sat May 19 06:45:39 MDT 2007


Den 19/05/2007 kl. 13.41 skrev Jonathan Schwartz:

> Hi Folks,
>
> I *just* started paying attention to checking for proper syntax in  
> my fx.php pages.  Up until this point, I have just been happy if  
> the page appears to perform as desired.  Now I'm looking for  
> trouble before it happens.
>
> Of course, I'm starting with 150 errors on a page, as the Syntax  
> Checker reports in BBedit.  I understand that it has to do with the  
> DocType, and I have decided to use XHTML Transitional.  I'd enjoy a  
> separate discussion on this subject, if anyone has an opinion.
>
> My question is whether or not BBEdit knows what fx.php/php tags  
> look like.  The Syntax Checker doesn't seem to appreciate them.   
> Perhaps this is just the way it is.
>
> Here's an example:
>
> The tag:
> <form method="post" action="<?php $_SERVER['PHP_SELF']; ?>" >
>
> The Error:
> Value of attribute "action" for element "<form>" is invalid; URL  
> path needs encoding ("%3C?php%20$_SERVER%5B'PHP_SELF'%5D;%20?%3E")

It appears the syntax checker barfs at anything which is not valid (X) 
HTML.
It is probably not aware of the mix of PHP code and HTML.

I personally check my pages 'live', that is in the browser using  
validator.w3.org (called from the Web Developer extension in Firefox)


> Any comments?
>
> Thx
>
> Jonathan
> -- 
> Jonathan Schwartz
> Exit 445 Group
> jonathan at exit445.com
> http://www.exit445.com
> 415-381-1852
> FileMaker 8 Certified Developer
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



---
Erik Andreas Cayré
Spangsbjerg Møllevej 169
6705 Esbjerg Ø

Privat Tel: 75150512
Mobil: 40161183

---
»Interesse kan skabe læring på en skala sammenlignet med frygt, som  
en nuklear eksplosion i forhold til en kineser.«
--Stanley Kubrick

»Kun p....sure mennesker kan ændre verden. Innovation skabes ikke af  
'markedsanalyse', men af folk, der er afsindigt irriterede over  
tingenes tilstand «
--Tom Peters

»Hvis du ikke kan forklare det simpelt, forstår  du det ikke godt nok.«
-- Albert Einstein

»Hvis du ikke har tid til at gøre det rigtigt, hvornår vil du så have  
tid til at lave det om?«
-- John Wooden, basketball coach




More information about the FX.php_List mailing list