registration form in php

This is a discussion on "registration form in php" within the Flash & Multimedia Forum section. This forum, and the thread "registration form in php are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 11th, 2006, 19:17
New Member
Join Date: Jul 2006
Location: Georgia
Age: 26
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy registration form in php

I built a registration form for my website.
www.ksuccf.org
I clicked on join cff

I fill out only the first two required data fields. but when i hit the submit button, i only receive the lables Name, Email, and Phone but no actual data.

here is my code within the action layer, frame 1
stop();
// --------------------<send from LoadVars>-------------------- \\
var gatherForm:LoadVars = new LoadVars();
function sendForm() {
gatherForm.email_to = "atlnycdude23@gmail.com";
gatherForm.visitor_phone = contactForm.userPhone.text;
gatherForm.visitor_name = contactForm.userName.text;
gatherForm.visitor_email = contactForm.userEmail.text;
gatherForm.send("cgi-bin","POST");
}
// --------------------</send from LoadVars>-------------------- \\
_global.style.setStyle("fontFamily", "Bitstream Vera Sans");
_global.style.setStyle("fontWeight", "bold");
_global.style.setStyle("fontSize", 12);
_global.style.setStyle("color", 0x000000);
//--------------------<submit button AS>---------------------\\
this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "submit";
// onRollOver
this.contactForm.submitBtn.onRollOver = function() {
contactForm.submitBtn.gotoAndStop (2);
}
// onRollOut
this.contactForm.submitBtn.onRollOut = function() {
contactForm.submitBtn.gotoAndStop (1);
}
// onRelease
this.contactForm.submitBtn.onRelease = function() {
if (contactForm.userEmail.text == "" || contactForm.userName.text == "") {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
}

and my code in php which is a seperate file.

<?PHP
$to = "atlnycdude23@gmail.com";
$subject = "Join CCF";
$message = "Name: " . $userName;
$message .= "\nEmail: " . $userEmail;
$message .= "\n\nPhone: " . $userPhone;
$headers = "From: $userEmail";
$headers .= "\nReply-To: $userEmail";
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>

I would apreciate your help!
Reply With Quote

  #2 (permalink)  
Old Jul 11th, 2006, 19:45
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: registration form in php

I can't speak about the Flash side of things other than to query why you feel the need to build a form in Flash at all.

However, need to see the rest of your php. If what you have shown us is it, then I'm not suprised it isn't working.
Reply With Quote
  #3 (permalink)  
Old Jul 11th, 2006, 20:09
New Member
Join Date: Jul 2006
Location: Georgia
Age: 26
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: registration form in php

that is all i have for php.
Reply With Quote
  #4 (permalink)  
Old Jul 11th, 2006, 21:03
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: registration form in php

Then as I said before, there is no way this would work.

There is no code here to pick up the variables passed from the page with the form on when the form is submitted.

Did you get this snippit of code from somewhere or is it your own work?
Reply With Quote
  #5 (permalink)  
Old Jul 11th, 2006, 21:16
New Member
Join Date: Jul 2006
Location: Georgia
Age: 26
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: registration form in php

actually it dose work. i only receive the lables but no data. i got the php code from
www.gotoAndLearn.com

sending mail with php.


but i modified with my own variables.
Reply With Quote
  #6 (permalink)  
Old Jul 11th, 2006, 21:17
New Member
Join Date: Jul 2006
Location: Georgia
Age: 26
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: registration form in php

actually there is a mistake since i decided to use php.

Code:
instead of gatherForm.send("cgi-bin","POST");


i used

Code:
gatherForm.send("http://www.ksuccf.org/send.php,"POST");



the send.php is in the public_html folder.
sorry about the miscommunication. Thanks
Reply With Quote
Reply

Tags
registration, form, php

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Registration form deepujbhat Other Programming Languages 4 Aug 2nd, 2007 12:57
Custom questions on registration form darecia Website Planning 5 Jul 10th, 2007 07:21
Registration script cullinanweb PHP Forum 6 Feb 6th, 2007 13:33
Login / Registration help Noobie PHP Forum 1 Apr 14th, 2006 14:01


All times are GMT. The time now is 22:53.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43