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.
|
|
|
|
|
![]() |
||
registration form in php
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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! |
|
|
|
|||
|
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. |
|
|||
|
Re: registration form in php
that is all i have for php.
|
|
|||
|
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? |
|
|||
|
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. |
|
|||
|
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 |
![]() |
| Tags |
| registration, form, php |
| Thread Tools | |
|
|
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 |