Dog Site - Dog Stuff
Dog Forum | Dog Pictures

Go Back   Chazhound Dog Forum > Dog Forum News > The Fire Hydrant


Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2012, 03:43 PM
Sweet72947's Avatar
Sweet72947 Sweet72947 is offline
Squishy face
 
Join Date: May 2006
Location: Northern Virginia
Posts: 9,103
Default Anyone here know PHP?

I am trying to get a form to work on a website I made, and I can't get it to function properly.

Here's the form:
http://www.wscc.site11.com/memapp.html

Here is the code:

<?php
{
$myemail="[email protected]";
$subject = "Warrenton Stamp & Coin Club Membership";

$Fname = $_POST['Fname'];
$Lname = $_POST['Lname'];
$Saddress = $_POST['saddress'];
$city = $_POST['city'];
$state = $_POST['state'];
$zip = $_POST['zip'];
$phone = $_POST['phone']
$email = $_POST['email'];


$message="This membership form has been submitted by:

Name: $Fname
Address: $Sadress
City: $city
State: $state
Zip: $Zip";

mail ($myemail, $subject, $message);

header('Location: contactmem2.html');
exit();

}
?>
__________________
FOHA - Adopt!



"Give thanks to God for being dog. He gave us the joy of angels." - Trixie Koontz, Dog, Trixie Treats & Holiday Wisdom - Christmas is Good!
Reply With Quote
  #2  
Old 01-10-2012, 07:57 AM
J. Morrison's Avatar
J. Morrison J. Morrison is offline
Puppy Dog
 
Join Date: Dec 2011
Posts: 96
Default

Are the form titles correct in the HTML?
__________________
The Dog Blog - My journey into first time dog ownership | How to make a flirt pole on Top Ten Smartest Dogs
Reply With Quote
  #3  
Old 01-10-2012, 09:00 AM
Beanie's Avatar
Beanie Beanie is offline
Clicker Cult Coordinator
 
Join Date: May 2006
Location: Illinois
Posts: 13,275
Default

You're missing some case sensitivity here:
$Saddress = $_POST['saddress'];
and here:
Zip: $Zip";

Also, Address: $Sadress - you're missing the second d.

Missing the ";" here: $phone = $_POST['phone']


Try that... see what (if any) error message it gives you then...
__________________


Auggie - The Flash RN NAJ MXP MJP CGC
Payton - Sharp Dressed Man NA NAJ CGC
Pepper - Chocolate Swizz-l-icious
& the pest, Georgie - Peach Pudding N Pie NA OAJ
The Sheltiechick Blog
Reply With Quote
  #4  
Old 01-10-2012, 12:57 PM
Sweet72947's Avatar
Sweet72947 Sweet72947 is offline
Squishy face
 
Join Date: May 2006
Location: Northern Virginia
Posts: 9,103
Default

Ok, it semi-works now. Thanks Beany!

I just need to tweak a few things and then it should work completely.
__________________
FOHA - Adopt!



"Give thanks to God for being dog. He gave us the joy of angels." - Trixie Koontz, Dog, Trixie Treats & Holiday Wisdom - Christmas is Good!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 02:34 AM.


1997-2013 Chazhound Dog Site