Ok, I'm having a helluva time creating forms for my site. Basically, I just want to make a simple form for use as a joining application, for my clan website. The website software is IPB 2.1.7
I suck at PHP, and really don't know much off the top of my head.
I found a script that I'd like to use, but I can't get it to work. It is supposed to send me an email with the form results, but it doesn't send me an email.
I put this on my page:
And made a file called 'contact.php' and uploaded it. Inside, is this:
Here is a preview of it on my site:
http://www.crazed.clanafterdeath.com/index.php?code=test (note: I just use this for testing )
I would REALLY appreciate any help, PLEASE!
Thanks in advance.
I suck at PHP, and really don't know much off the top of my head.
I found a script that I'd like to use, but I can't get it to work. It is supposed to send me an email with the form results, but it doesn't send me an email.
I put this on my page:
Code:
<form method="post" action="contact.php">
Subject:
<input type="text" name="subject" size="20">
Email:
<input type="text" name="email" size="20">
Comments:
<textarea cols="20" rows="5" name="comment"></textarea>
<input type="submit" value=" Submit "> </form>
And made a file called 'contact.php' and uploaded it. Inside, is this:
Code:
<?
$subject = $_POST['subject']; // This is will be the subject of the email
$email = $_POST['email'];
$comments = $_POST['comments'];
$submit = $_POST['submit'];
if($submit)
{
// Replace [email]name@host.com[/email] with your email address!
mail("crazed_rider@yahoo.com", "$subject", "$email", "$comments");
}
?>
Here is a preview of it on my site:
http://www.crazed.clanafterdeath.com/index.php?code=test (note: I just use this for testing )
I would REALLY appreciate any help, PLEASE!
Thanks in advance.