0) { $error = implode(", ", $m).(count($m) > 1 ? " fields are required." : " field is required."); } else { $filepath = realpath(tempnam($_ENV['TMP'], "xlocatorlocation")); $f = fopen($filepath, "w"); fputcsv($f, array_keys($values), ","); fputcsv($f, array_values($values), ","); fclose($f); $c = curl_init("http://app.xtremelocator.com/siteAdmin/directImport.php"); $xval = array( "id" => "46", "type" => "append", "file" => "@$filepath" ); curl_setopt($c, CURLOPT_POST, 1); curl_setopt($c, CURLOPT_POSTFIELDS, $xval); ob_start(); curl_exec($c); $response = ob_get_contents(); ob_end_clean(); // send e-mail notification $body = "New location registered:\n\n"; foreach ($values as $k => $v) { if ($v != "" || in_array($k, $yesnoFields)) { if (in_array($k, $yesnoFields)) { $v = $v > 0 ? "Yes" : "No"; } if ($k == "SPECIALTIES") { $vv = explode(";", $v); foreach ($vv as $v) { $body .= "$v: Yes\n"; } } else { $body .= "$k: $v\n"; } } } $email = "staff@buckeyemall.com"; $from = $email; mail("$email", "New location registered", $body, "From: $from\nReply-To: $from"); $message = "Registration Successful"; } } ?> BuckeyeMall.com - Buckeye Hangouts
Buckeye Hangouts
  Navigation :: Home :: Submit Buckeye Gamewatch Hangout
Buckeye Gamewatch Hangout Location Form
Name of Hangout*
Hangout Street Address
City
State
Zip Code
Country
Hangout Phone
Hangout E-mail
Hangout Website
Hangout Contact Name
Hangout Contact Position
Headline about Location
Description of Hangout
Multiple TVs
Alumni Club Hangout
Full Menu
Hangout Submitted By
Submitter's Email Address
Copyright 2007 Buckeye Hangouts . All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of Buckeye Hangouts is prohibited. This site is not affiliated with the NCAA or the Ohio State University.