| | |
PHP and Flash Form help
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2008
Posts: 1
Reputation:
Solved Threads: 0
Well, I got this from a tutorial across the web and I saw a post from this website concerning with what I had. Though nothing works, I'm trying to see what can I do to have the content simply send in and flow though.
Flash:
Heres the PHP Script, i'm trying to get content from
Flash:
actionscript Syntax (Toggle Plain Text)
stop(); System.useCodepage = true; send_btn.onRelease = function() { my_vars = new LoadVars(); my_vars.sender = email_box.text; my_vars.subject = subject_box.text; my_vars.name = name_box.text; my_vars.email = email_box.text; my_vars.company = company_box.text; my_vars.address = address_box.text; my_vars.csz = csz_box.text; my_vars.phone = phone_box.text; my_vars.fax = fax_box.text; my_vars.part = part_box.text; if (my_vars.sender != "" and my_vars.subject != "" and my_vars.part != "") { my_vars.sendAndLoad("http://kerneng.com/flash/mailer.php", my_vars, "POST"); gotoAndStop(2); } else { error_clip.gotoAndPlay(2); } my_vars.onLoad = function() { gotoAndStop(3); }; }; email_box.onSetFocus = subject_box.onSetFocus=part_box.onSetFocus=function () { if (error_clip._currentframe != 1) { error_clip.gotoAndPlay(6); } };
Heres the PHP Script, i'm trying to get content from
php Syntax (Toggle Plain Text)
<?php /* --------------------------- php and flash contact form. by www.MacromediaHelp.com --------------------------- Note: most servers require that one of the emails (sender or receiver) to be an email hosted by same server, so make sure your email (on last line of this file) is one hosted on same server. --------------------------- */ // read the variables form the string, (this is not needed with some servers). $subject = $_REQUEST["subject"]; $sender = $_REQUEST["sender"]; $name = $_REQUEST["name"]; $email = $_REQUEST["email"]; $company = $_REQUEST["company"]; $address = $_REQUEST["address"]; $csz = $_REQUEST["csz"]; $phone = $_REQUEST["phone"]; $fax = $_REQUEST["fax"]; $part = $_REQUEST["part"]; // include sender IP in the message. $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . '$name'. "\n\n" . '$email' . "\n\n" . '$company' . "\n\n" . '$address' . "\n\n" . '$csz' . "\n\n" . '$phone' . "\n\n" . '$fax' . "\n\n" .' $part' $message = $full_message; // remove the backslashes that normally appears when entering " or ' $message = stripslashes($message); $subject = stripslashes($subject); $sender = stripslashes($sender); // add a prefix in the subject line so that you know the email was sent by online form $subject = $subject; // send the email, make sure you replace email@yourserver.com with your email address if(isset($message) and isset($subject) and isset($sender)){ mail("gundamdeviL@hotmail.com", $subject, $message, "From: $sender"); } ?>
Last edited by Animosity; Dec 24th, 2008 at 10:43 am.
![]() |
Similar Threads
- PHP / Flash Variable Email Script Format Question (PHP)
- Help with flash image adding email link (Graphics and Multimedia)
- Contact form Flash/PHP sends with Text Formatting (PHP)
- mailer.php almost works :| (PHP)
- Banner Free: PHP & MySQL web hosting: 300MB Space & 80 GB Traffic (Web Hosting Deals)
- php flash mail (PHP)
- Zend PHP Certification (PHP)
Other Threads in the PHP Forum
- Previous Thread: could i search images in a folder using php in offline
- Next Thread: How to join two table with same cells names
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary broken buttons cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail mediawiki menu mlm mod_rewrite multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search server sessions sms soap source sp space speed sql subdomain syntax system table tag tutorial update upload url validation validator variable vbulletin video web websphere white xml youtube





