I don't have any solutions but here are some comments that may be useful.

I would guess that your user agent (web browser) is not detecting the mime
type properly. This usually happens if the web server is not properly
configured to send .php files as text/html (see http.conf if applicable).
There is also a setting for this in the php.ini file but apparently the web
sever/php is ignoring it. You could also register .php files as text/html in
the user agent but this is certainly the WRONG way to go about fixing the
problem.


[TK] 

> -----Original Message-----
> From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, 28 February 2002 2:26 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Enter the clueless newbie
> 
> 
> This made me so curious that I copied your code - works just 
> fine over 
> here. What's the exact URL you're using to access this file 
> (leave out 
> the sensitive data).
> 
> Bogdan
> 
> Bob Rea wrote:
> 
> >On Wednesday 27 February 2002 07:04 pm, Bogdan Stancescu
> >wrote:
> >
> >>Are you trying this via HTTP or on the local file?
> >>
> >>Bogdan
> >>
> >
> >Oh sorry, running it on my linux box, SuSE 7.3, using
> >apache, files in the same directory. Other files wiht php 
> >in them work well. This is my first try at forms and php
> >
> >>Bob Rea wrote:
> >>
> >>>Hi
> >>>
> >>>I am just starting to learn php. I'm using Larry
> >>>Ullman's book in the Visual Quickstart guide series.I
> >>>have copied out of the book the first example of a form
> >>>in html and the corresponding php file to display the
> >>>info.
> >>>
> >>>When I click submit in the html page, Konqueror (KDE)
> >>>asks me where I want to save HandleForm.php. Netscape
> >>>just does nothing after I hit the submit button.
> >>>
> >>>Can someone tell me what I am doing wrong?
> >>>
> >>>Here is the code:
> >>>
> >>>HtmlForm.html:
> >>><html>
> >>><head>
> >>><title>HTML Form</title>
> >>></HEAD>
> >>><body>
> >>><FORM ACTION="HandleForm.php" METHOD=POST>
> >>>First Name <INPUT TYPE=TEXT
> >>>NAME="FirstName" SIZE=20><BR>
> >>>Last Name <INPUT TYPE=TEXT
> >>>NAME="LastName" SIZE=40><BR>
> >>>Email Address <INPUT TYPE=TEXT
> >>>NAME="Email" SIZE=60><BR>
> >>>Comments <TEXTAREA NAME="Comments"
> >>>ROWS=5 COLS=40></TEXTAREA><BR>
> >>><INPUT TYPE=SUBMIT NAME="SUBMIT"
> >>>VALUE="Submit!">
> >>><INPUT TYPE=RESET NAME="RESET"
> >>>VALUE="Reset">
> >>></FORM>
> >>></body>
> >>></html>
> >>>
> >>>And HandleForm.php:
> >>><html>
> >>>
> >>><head>
> >>><title>Form Results</title>
> >>></head>
> >>>
> >>><body>
> >>><?php
> >>>
> >>>/*This page receives and handles the data generated by 
> >>>HtmlForm.html*/
> >>>
> >>>print "Your first name is $FirstName.<br>\n";
> >>>print "Your last name is $LastName.<br>\n";
> >>>print "Your email address is $Email.<br>\n";
> >>>print "This is what you had to say: $Comments.<br>\n";
> >>>
> >>>?>
> >>></body>
> >>></html>
> >>>
> >>>TIA for your help. :)
> >>>
> >
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to