| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#13 (permalink) |
|
is scientific.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
|
Ah. Well, since only I see it I didn't care to check anything against it, so I didn't notice. Thanks for pointing that out though.
|
|
|
|
|
|
#14 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
HTML's much less strict than XHTML. It doesn't care whether there's no quotes (single values with no spaces), single quotes, or double quotes.
__________________
Nobody doing nothing |
|
|
|
|
|
#15 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,086 posts
Gave thanks: 48
Thanked 131 times
|
That's a rather interesting way of describing it... I'd say it's not as structured, formal or standardized. Either way, for coding purposes, I would always use double quotes in the event I had to upgrade to XHTML.
|
|
|
|
|
|
#16 (permalink) |
|
Registered User
Seasoned Poster
Joined in Sep 2004
58 posts
Gave thanks: 0
Thanked 0 times
|
there is practically no difference between HTML and XHTML. XHTML is just HTML compiled using XML.
Either way, i'm surprised no one brought this up, but you might want to google in "sql injection" when you'r adding the info to the database, add this line before the query: addslashes($foobar); then before you echo it out (in the edit), add this line: stripslashes($foobar); Resources: http://us3.php.net/addslashes http://us3.php.net/stripslashes |
|
|
|
|
|
#17 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,086 posts
Gave thanks: 48
Thanked 131 times
|
Heh, addslashes and stripslashes, that's awesome.
PHP Code:
Edit: Also, XHTML is not compiled. It's a mark-up language that follows the structure of XML. Every tag has to be closed and has to follow structure. It's also meant to improve accessibility and begin the transition for seperating content structure from style (eg: CSS/XHTML used together). Last edited by H; December 2nd, 2005 at 6:08 PM.. |
|
|
|