Problem with PHP
Posted: Thu Jul 23, 2009 12:03 am
I have a localhost running Apache 2.2 (on WINXP), and PHP 5.3. When I access a PHP page, it displays the source of the page like this (this is only part of it):
Now, I have another page that is a feedback form that uses php to send e-mail feed back. The code is:
I can access the feed back page AOK, and send feedback successfully. Then, I can continue to access any other PHP pages just fine, and they act as expected. But once I close the browser, and reopen it. The problems resurfaces again, each and every time!
What am I doing wrong? When I installed PHP, it told me that I had to manually edit my httpd.conf file.
Thanks in Advance!!!!!!!!
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<!-- #BeginTemplate "../master.dwt" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta name="Robots" content="index, nofollow, noarchive, noimageclick">
<meta name="Distribution" content="Global">
<meta name="Revisit-After" content="30 days">
<meta name="Rating" content="General">
<!-- #BeginEditable "doctitle" -->
<style type="text/css">
.style2 {
font-size: xx-small;
}
Code: Select all
<?php
$to = my real e-mail removed from here;
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
$subject = $_REQUEST['subject'];
mail( $to
, "[feedback] $subject"
, $message
, "From: $email" );
?>
What am I doing wrong? When I installed PHP, it told me that I had to manually edit my httpd.conf file.
Thanks in Advance!!!!!!!!