Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 12:34:35 PM

Pages: [1]   Go Down
  Print  
Author Topic: Form Submission  (Read 1140 times)
first114
Newbie
*
Offline Offline

Posts: 1


« on: April 25, 2008, 02:44:41 PM »

I am trying to get the form on my web site to work, when the user clicks on the submit button, the information comes to my email address but the information on the form that i am trying to get from the user does not come through to me.  Also i get is a blank email showing only the "Subject", "From", "Date", "To" and "Priority" lines.  there is nothing in the body of the email.

Is there anyone out there who can tell me what I am doing wrong?  you can view the form @ http://www.firstpremiersecurity.com/servicerequest.html

Thanks
Logged
Ibanez Player 85
Jabba the Hutt
*****
Offline Offline

Posts: 517


« Reply #1 on: May 10, 2008, 08:32:38 AM »

404 not found
Logged
koomori
Newbie
*
Offline Offline

Posts: 1


« Reply #2 on: July 19, 2010, 04:53:13 PM »

I'm having the exact same problem. The info captured from a form are emailed to me empty. This is the php side of the form and the form is at http://www.hawkridge.org/research/nesting.html

Any help with this problem will be appreciated.

<html>

<title>Send information to researchers</title>

<head>

</head>

<body>

<?php



$name=addslashes($_POST['name']);

$name = str_replace("\n.", "\n..", $name);

$address=addslashes($_POST['address']);

$address= str_replace("\n.", "\n..", $address);

$contact=addslashes($_POST['contact']);

$contact= str_replace("\n.", "\n..", $contact);

$phone=addslashes($_POST['phone']);

$phone= str_replace("\n.", "\n..", $phone);

$email=addslashes($_POST['email']);

$email= str_replace("\n.", "\n..", $email);

$species=addslashes($_POST['species']);

$species= str_replace("\n.", "\n..", $species);

$location=addslashes($_POST['location']);

$location= str_replace("\n.", "\n..", $location);
$location = wordwrap($location,70);

$description=addslashes($_POST['description']);
$description= str_replace("\n.", "\n..", $description);
$description = wordwrap($description,70);

$dates=addslashes($_POST['dates']);

$dates= str_replace("\n.", "\n..", $dates);

$comments=addslashes($_POST['comments']);

$comments= str_replace("\n.", "\n..", $comments);
$comments = wordwrap($comments,70);


$msg = "Name: $name\n".

 "Address: $address\n".

 "May We Contact You?: $contact\n".

 "Phone: $phone\n".

 "Email: $email\n".

 "Species: $species\n".

 "Location: $location\n".

 "Description: $description\n".

 "Dates: $dates\n".

 "Comments: $comments\n";





$to = 'koomori@mail.com';



$email = 'fnicoletti@hawkridge.org';



$subject = 'Raptor Nesting Survey';



mail($to, $subject, $msg, 'From: '. $email);



echo "Thank you for participating in our survey<br /><br />";
echo "Return to <a href='http://www.hawkridge.org/research/nesting.html'>Nesting Form</a><br /><br />";
echo "Return to <a href='http://www.hawkridge.org'>Hawk Ridge Home Page</a><br /><br />";



?>

</body>

</html>
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: