--- "Lso ." <[EMAIL PROTECTED]> wrote:
> ok i see why i didnt work but i dont know why.
> 
> can anyone tell me why this works:
> 
> <input name="testfield" type="text" value="<? echo htmlentities($company) 
> ?>">
> 
> but this doesn't:
> 
> echo "<input name='company' type='text' value='". htmlentities($company) 
> ."'>";

It works for me, at least it does what I think you mean it to do. I'm not a big
fan of single-quoted attributes in HTML, but it should be fine. What doesn't
work for you?

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to