...

View Full Version : html is messin up my php



Ranger56
08-24-2006, 04:30 AM
I have some variables that are paragraphs, and if I put <br /> in it it messes up my syntax highlighting, it looks the same if I add an extra " somewhere.

megajosh2
08-24-2006, 04:31 AM
You should probably show us your script. :p

Ranger56
08-24-2006, 04:33 AM
There's some vivid language.

megajosh2
08-24-2006, 04:35 AM
Well if we can't see it then no one can help.

Ranger56
08-24-2006, 04:37 AM
I'm sure I'm doing something wrong but here


if ($m=SUX) {
$name = "Sux";
$message = "Holy **** guys...this is the most f***** up s*** i have ever heard...
and it's not even funny. you guy have a nice site and all, bu then that home made music s*** is wack,
its like me playing when i havn't drunk water for 2 months.
<br /><br />
Wanna hear my suggestion... <br />
-make some REAL music<br />
-get some better people<br />
-spiders eat babies? <br /><br />

This sucked sooo badd, that i am actually writing this to you guys!";
$comments = "Well, first off, we try! Thanks for telling us how much you like us. Oh wait... You don't like it? THAT'S TOO BAD. And you should totally try not drinking water for two months, that would RULE.
Suggestions
- stop listening to the radio
- what does THAT mean?
- they do, its very common";
}

There's more else if stuff below it

GJay
08-24-2006, 08:08 AM
and what exactly is the problem?



if ($m=SUX) {

struck me as an obvious error, you want to use == to test for equality. And to confirm, you have defined 'SUX' as a constant prior to here?

Ranger56
08-24-2006, 10:34 AM
and what exactly is the problem?



if ($m=SUX) {

struck me as an obvious error, you want to use == to test for equality. And to confirm, you have defined 'SUX' as a constant prior to here?
Yeah, I suck at PHP, SUX is in the url.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum