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


Groups > comp.sys.acorn.programmer > #700

Re: PHP query

Subject Re: PHP query
Newsgroups comp.sys.acorn.programmer
From Alan Adams <alan@adamshome.org.uk>
Date 2011-09-08 20:49 +0100
Message-ID <0374a80f52.Alan.Adams@laptop.adamshome.org.uk> (permalink)
References <aaf1210f52.Alan.Adams@laptop.adamshome.org.uk> <520f5b7e0dzuiderduin@hotmail.com>
Organization Orpheus Internet Services

Show all headers | View raw


In message <520f5b7e0dzuiderduin@hotmail.com>
          Frank de Bruijn <zuiderduin@hotmail.com> wrote:

> In article <aaf1210f52.Alan.Adams@laptop.adamshome.org.uk>,
>    Alan Adams <alan@adamshome.org.uk> wrote:

>> This works file for most input, producing the typed data in both the
>> readtest= line, and the input field.

>> however if the input data is O'Reilly then the result shows
>> readtest=O\'Reilly, and the input field holds O\

> Magic quotes for GET/POST/Cookie data must be active. Make sure it's
> switched off in your php.ini:

> magic_quotes_gpc = Off

> If you don't have access to the php.ini used with that server, you can
> try putting it in a .htaccess file:

> php_flag magic_quotes_gpc off

> I know this works with Apache but I'm not sure about WebJames.

> Regards,
> Frank

and to follow up my last reply,

what really works properly is

echo "<input type='text' name='display' value=\"$readtest\">\n";

which puts the double quotes round the text in the html that results.

-- 
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PHP query Alan Adams <alan@adamshome.org.uk> - 2011-09-07 20:20 +0100
  Re: PHP query Robin Hounsome <robin@hounsome.org.uk> - 2011-09-07 21:29 +0100
  Re: PHP query Frank de Bruijn <zuiderduin@hotmail.com> - 2011-09-08 07:48 +0200
    Re: PHP query Alan Adams <alan@adamshome.org.uk> - 2011-09-08 20:49 +0100
      Re: PHP query Matthew Phillips <spam2011m@yahoo.co.uk> - 2011-09-08 22:09 +0100
        Re: PHP query Alan Adams <alan@adamshome.org.uk> - 2011-09-08 23:05 +0100
        Re: PHP query "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-09-10 00:47 +0200
          Re: PHP query Matthew Phillips <spam2011m@yahoo.co.uk> - 2011-09-13 20:46 +0100
            Re: PHP query "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-09-13 22:03 +0200
        Re: PHP query Alan Adams <alan@adamshome.org.uk> - 2011-09-13 22:39 +0100

csiph-web