The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have a PHP contact code on my site... Right now, after you submit a contact form, it comes up with...
Code:
Data has been submitted to $to! Code:
echo "Data has been submitted to $to!"; mail($to, $subject, $body); |
|
#2
|
|||
|
|||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
that's not my whole code.
Code:
<?php
if(isset($_POST['submit'])) {
$to = "mikemersereau@hotmail.com";
$subject = "Client Testimonial";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n Email: $email_field\n Testimonial:\n $message";
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "error";
}
?>
|
|
#4
|
|||
|
|||
|
1.
PHP Code:
|
|
#5
|
|||
|
|||
|
ah, thank you very much!
|
|
#6
|
||||
|
||||
|
I recommend something a little more standard...
PHP Code:
|
|
#7
|
|||
|
|||
|
sorry, you probably do not know this, but it is not for vbulletin, just for a general webpage.
|
|
#8
|
||||
|
||||
|
Oh, I see. Then don't use the exit() function (it does some wonky things between different versions of PHP).
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|