View Single Post
(#4 (permalink))
Old
blackdogruns's Avatar
blackdogruns blackdogruns is offline
Member
blackdogruns is an unknown quantity at this point
 
Posts: 75
Join Date: Dec 2011
Location: Salem, Oregon
Cool 05-02-2012, 03:20 PM

Quote:
Originally Posted by d3iti View Post
Can you give the address of the website with the form?
To start, I would try changing the following on the file with PHP code:


PHP Code:
<?php
if (isset($_POST['reciever'])) 
    
$reciever $_POST['reciever'];
else 
$reciever "No data";

if (isset(
$_POST['name'])) 
    
$name $_POST['name'];
else 
$name "No data";

if (isset(
$_POST['sender'])) 
    
$email $_POST['sender'];
else 
$email "No data";

if (isset(
$_POST['type'])) 
    
$type $_POST['type'];
else 
$type "No data";

if (isset(
$_POST['says'])) 
    
$messagetext $_POST['says'];
else 
$messagetext "No data";


$subject $name "clubs" ;
$message "This is an e-mail sent from the clubs and organisations page on the CHS website. The form was created by Ryan Pointer. If you have any questions, please contact him.(me)
From: {$name} 
E-mail: {$email}
Type: {$type}
message: {$messagetext}"
;

if(
mail($reciever$subject$message"From:" $email PHP_EOL)){
    echo 
'Hello $name Thank you for filling out my mail form<br> An e-mail has' ;
    echo 
'been dispatched to the advisor and they will reply shortly to your e-mail, $email ';
    echo 
'Have a nice day <br>';
}else{
    echo 
'There has been an internal server error. Please try again later.';

?>
The site is http://www.chspanthers.org/studentli...r_testing.html

It is in a jquery popup. Click the first advisor to trigger the popup.
Reply With Quote