Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3268

Re: PHP/MySQL oddity

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: PHP/MySQL oddity
Date 2011-10-02 19:35 +0200
Organization A noiseless patient Spider
Message-ID <4E88A0FB.1080402@arnowelzel.de> (permalink)
References <n6le87lkemajdupb9d24qn811ult5t4dm1@4ax.com>

Show all headers | View raw


Mason Barge, 2011-10-01 20:14:

> I've been building a form that takes default text input from a database
> (PHP 5.2, MySQL 5).  It's to allow a user to modify previously entered
> text without rewriting the entire thing.
[...]
> <form name=...><input type=text . . . value = '<?php echo $info;?>'
> 
> Or echo the whole thing, or double quotes around the variable.  I just
> can't figure out how to make the apostrophe appear to save my life.

<?php echo htmlspecialchars($info); ?>

HTH


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

PHP/MySQL oddity Mason Barge <masonbarge@gmail.com> - 2011-10-01 14:14 -0400
  Re: PHP/MySQL oddity Luuk <Luuk@invalid.lan> - 2011-10-01 20:31 +0200
    Re: PHP/MySQL oddity Mason Barge <masonbarge@gmail.com> - 2011-10-01 17:31 -0400
      Re: PHP/MySQL oddity Denis McMahon <denismfmcmahon@gmail.com> - 2011-10-01 22:23 +0000
        Re: PHP/MySQL oddity Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-02 04:30 +0200
          Re: PHP/MySQL oddity Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-02 09:55 -0400
  Re: PHP/MySQL oddity Arno Welzel <usenet@arnowelzel.de> - 2011-10-02 19:35 +0200

csiph-web