Posted by Chris Shiflett on 11/24/46 11:32
Alex Alfonso wrote:
> Can you please tell me how to make a space in php. I know that <br>
> is a new line and <p> is a new paragraph. But I just can't figure
> out what an earth a space is. Eg
> <?php
> echo "Television viewers who turned to";
> echo "<I need a space here>";
> echo $_POST['word1'];
> ?>
> Can you please tell me what a space is.
A space is just a space. PHP isn't special in this regard.
How did you get that space between Television and viewers? :-)
By the way, you need to at least use htmlentities() whenever you output
variables like that. As it is, your code demonstrates a cross-site
scripting (XSS) vulnerability.
Hope that helps.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
Navigation:
[Reply to this message]
|