PHP scripts and IE

From: Tony Wainwright (tony.wainwright_at_virgin.net)
Date: 01/30/05


Date: Sat, 29 Jan 2005 23:09:36 +0000 (UTC)

Hi Guys
Using WinXP Pro SP2 with PHP 5.0.2, MySQL4.0.21 and Apache 2.0.52. I am
just trying to get to grips with these tools and am following a book PHP,
MySQL and Apache All in One from SAMS publishing.
Everything seems to be working OK except when I am trying out some simple
PHP form scripts. I click the send button and I get a File Download dialog
asking me if I want to open or save the file. Why does it do this?

The html file is as follows
<html>
<head>
<title>A Simple HTML form</title>
</head>
<body>
<form action="send_simpleform.php" method="POST">
<p><strong>Name:</strong><br>
<input type="text" name="user"><br>
<p><strong>Message:</strong><br>
<textarea name="message" rows="5" cols="40"></textarea></p>
<p><input type="submit" value="Send"></p>
</form>
</body>
</html>

and the php file is:
<?php
echo "<p>Welcome <b>$_POST[user]</b>!</p>";
echo "<p>Your message is:<br><b>$_POST[message]</b></p>";
?>

Thanks

TJ

-- 
Thanks
TJ 

Quantcast