Hi
I have this page but the php script don't work, just try it...
Can anyone help me?
Thanks
I have this page but the php script don't work, just try it...
Can anyone help me?
Thanks
| Code: |
|
<?php if (isset($_POST['send']) && isset($_POST['name']) && isset($_POST['message']) && isset($_POST['email'])) { /* Send message */ mail('YOUR MAIL HERE', 'Message from '.$_POST['name'], $_POST['message']); echo 'You have sent the message'; } else if (isset($_POST['send']) || isset($_POST['name']) || isset($_POST['message']) || isset($_POST['email'])) { /* If they forget some info */ echo 'You forgot to enter some info, please go back!'; } else { /* Display form */ echo "<form action=".$_SERVER['PHP_SELF']." method=post><table border=0> <tr><td>Name:</td><td><input name=name type=text></td></tr> <tr><td>Your Email:</td><td><input name=email type=text></td></tr> <tr><td>Message:</td><td><textarea name=message cols=50 rows=5></textarea></td></tr> <td><td colspan=2><input name=send type=submit></td></tr> </table></form>"; } |
| mtorregiani wrote: |
| Hi
I have this page but the php script don't work, just try it... Can anyone help me? Thanks |
| DudeAmI0 wrote: |
|
EDIT: I dunno why it gives that mail() error... it says need to fix ini... |