How does facebook do this?

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
because the variable compose is not set to anything.
If you mean $compose, it's not set unless register_globals is on. If you mean $_REQUEST['compose'] and $_GET['compose'], they're set to the empty string. Use isset() or array_keys($_REQUEST) to make the 'compose' input parameter useful.
PHP:
if (isset($_REQUEST['compose'])) {
  ...
}
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
thank you mission
that is exactly the kind of answer i needed

may be closed now.
 
Top