Ok, so I just installed PHP 5 and Apache 2.0.53 on my computer, and wanted to test out if all is ok. I made a simple form, but when I click submit, it gives me “Page cannot be displayed”. Does this mean I didn’t install PHP properly? Or Apache?
Looking at my Apache Icon, it says “Running all apache services”, and there’s a green light beside Apache2.
I will post my script just in case it’s because of the script I have. I just took it off a website to test it out.
<HTML>
<body>
<form method=”post” action=”sendmail.php”>
Email: <input name=”email” type=”text” /><br />
Message:<br />
<textarea name=”message” rows=”15″ cols=”40″>
</textarea><br />
<input type=”submit” />
</form>
</body>
</HTML>
and my php file is this:
[code=php]
<?
$email = $_REQUEST[’email’] ;
$message = $_REQUEST[‘message’] ;
mail( “[email protected]”, “Feedback Form Results”,
$message, “From: $email” );
header( “Location: http://www.blah.com” );
?>