This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// NOTE: it's best practice to CLEAN YOUR INPUTS | |
// http://www.acunetix.com/websitesecurity/php-security-1.htm | |
function mail_attachment($filename, $path, $mailto, $from_mail, $from_name, $replyto, $subject, $message) { | |
$file = $path.$filename; | |
$file_size = filesize($file); | |
$handle = fopen($file, "r"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ($_GET['results']) { ?> | |
<!-- Embed results here --> | |
<?php } else { ?> | |
<!-- Embed form here --> | |
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mail_attachment($filename, $path, $mailto, $from_mail, $from_name, $replyto, $subject, $message) { | |
$file = $path.$filename; | |
$file_size = filesize($file); | |
$handle = fopen($file, "r"); | |
$content = fread($handle, $file_size); | |
fclose($handle); | |
$content = chunk_split(base64_encode($content)); | |
$uid = md5(uniqid(time())); | |
$name = basename($file); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div id="popup"></div> | |
<script src="http://wufoo.com/scripts/iframe/formEmbedKit.js"></script> | |
<script> | |
var framework = WufooFormEmbedKit(userDefinedCallback, 'popup', 'yourPoviderIdentifier'); | |
framework.initialize(); | |
function userDefinedCallback(message) { | |
alert(message); | |
framework.destroy(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"setup":"<script type=\"text\/javascript\">var host = ((\"https:\" == document.location.protocol) ? \"https:\/\/secure.\" : \"http:\/\/\");document.write(unescape(\"%3Cscript src='\" + host + \"wufoo.com\/scripts\/embed\/iframe.js' type='text\/javascript'%3E%3C\/script%3E\"));<\/script>", | |
"display":"<script type=\"text\/javascript\">\nvar z7x4a9 = new WufooForm();\nz7x4a9.initialize({\n'userName':'wufooapi', \n'formHash':'z7x4a9', \n'autoResize':true,\n'height':'627',\n'ssl':true});\nz7x4a9.display();\n<\/script>" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function userDefinedCallback(message, transport) { | |
//FIG. 10 Close lightbox | |
$("#popup").fadeOut(); | |
// FIG. 11: MAGIC: Receive code from wufoo.com | |
var objMessage = jQuery.parseJSON(message); | |
// FIG. 12: Create div and write out code for preview | |
// You wouldn't necessarily need to preview, you can do whatever you want with the code | |
$('<div />', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var framework = WufooFormEmbedKit(userDefinedCallback, 'popup', 'yourPoviderIdentifier'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Wufoo Form Integration · Test</title> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = '1'; |
NewerOlder