So I don't know too much about PHP or creating forms, this is my first try here. I'm using a Network Solutions web hosting. When ever I submit the form it goes to my sendmail.php page and give me an HTTP Error - 405 (page cannot be displayed) and never sends the form. Here's the code I'm using
HTTP Error - 405
6
So I don't know too much about PHP or creating forms, this is my first try here. I'm using a Network Solutions web hosting. When ever I submit the form it goes to my sendmail.php page and give me an HTTP Error - 405 (page cannot be displayed) and never sends the form.
Here's the code I'm using
Very simple. I don't think the problem would lie in the HTML. Anyone have a solution to my problem? Where do I go from here?
HTML Code
Here's the code I'm using
Code:
<?php
$email = $_POST['email'];
$message = $_POST['message'];
mail( "myemail@myemail.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: URL" );
?> HTML Code
Code:
<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>
- Tashi Mortier
- Cash Money Hosting
- [1] reply
- Tashi Mortier
- [1] reply
Next Topics on Trending Feed
-
6