|
#1
|
||||
|
||||
|
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="cfaurot@mail.com"; $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! |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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 CGC Pepper - Chocolate Swizz-l-icious & the pest, Georgie - Peach Pudding n Pie The Sheltiechick Blog ![]() |
|
#4
|
||||
|
||||
|
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! |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|