Working with HTML, CGI and MySQL. My pages looks perfekt with IE, but when I open them with Firefox I just see my code. Eg or
Any one who can explain why?
Any one who can explain why?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
print "Content-type: text/html\n\n";
NCSA CGI PrimerNCSA CGI Primer said:CGI programs can return a myriad of document types. They can send back an image to the client, and HTML document, a plaintext document, or perhaps even an audio clip. They can also return references to other documents. The client must know what kind of document you're sending it so it can present it accordingly. In order for the client to know this, your CGI program must tell the server what type of document it is returning.
/* Only one newline needed for Java because println already appends one */
system.out.println( "Content-Type: text-html\n" );
/* C */
printf( "Content-Type: text/html\n\n" );
/* PHP or Perl */
print( "Content-Type: text/html\n\n" );
# bash, bourne, or korn shell
echo "Content-Type: text/html\n\n";