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


Groups > comp.lang.php > #3268

Re: PHP/MySQL oddity

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: PHP/MySQL oddity
Date Sun, 02 Oct 2011 19:35:55 +0200
Organization A noiseless patient Spider
Lines 20
Message-ID <4E88A0FB.1080402@arnowelzel.de> (permalink)
References <n6le87lkemajdupb9d24qn811ult5t4dm1@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
Injection-Info mx04.eternal-september.org; posting-host="L0zAZFC9tY6H7bqeJg/xdA"; logging-data="20493"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZpuOdxEykb4kiPtaNIaxTCsoR+KcWzVU="
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
In-Reply-To <n6le87lkemajdupb9d24qn811ult5t4dm1@4ax.com>
Cancel-Lock sha1:4IABWW4pImhgfh2dCC6PlT8PqjI=
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:3268

Show key headers only | 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