On Fri, 17 Aug 2012 14:44:37 +0100, Robert Kern
wrote:
>> For some reason, this CGI script that I found on Google displays the
>> contents of the variable but the HTML surrounding it is displayed
>> as-is by the browser instead of being rendered
Thanks all. I (obviously) combined two scripts but
On 17.08.2012 15:27, Gilles wrote:
> For some reason, this CGI script that I found on Google displays the
> contents of the variable but the HTML surrounding it is displayed
> as-is by the browser instead of being rendered:
> print "Content-Type: text/plain;charset=utf-8"
With this line you tell
On 8/17/12 2:27 PM, Gilles wrote:
Hello
I'm learning how to call Python scripts through the different
solutions available.
For some reason, this CGI script that I found on Google displays the
contents of the variable but the HTML surrounding it is displayed
as-is by the browser instead
On 2012-08-17 at 15:27:59 +0200,
Regarding "[CGI] Why is HTML not rendered?,"
Gilles wrote:
> For some reason, this CGI script that I found on Google displays the
> contents of the variable but the HTML surrounding it is displayed
> as-is by the browser instead of being rende
On 17 August 2012 14:27, Gilles wrote:
>
> print "Content-Type: text/plain;charset=utf-8"
> print
>
Here's the problem - you're telling the browser to display in plain text.
Try 'text/html' instead.
--
Robert K. Day
robert@merton.oxon.org
--
http://mail.python.org/mailman/listinfo/python
Hello
I'm learning how to call Python scripts through the different
solutions available.
For some reason, this CGI script that I found on Google displays the
contents of the variable but the HTML surrounding it is displayed
as-is by the browser instead of being rendered:
--
#