Code Error
Posted: Wed Jul 01, 2009 3:14 pm
Why is the form not loading properly?
http://www.releaseboyz.com/form.php
http://www.releaseboyz.com/form.php
Code: Select all
<?php
// ---------- CONFIG - BEGIN ----------
// relativePathToForm is the relative path from this webpage
// to your form.
$relativePathToForm = "FORMfields/forms/generated/contact_us.php";
// relativePathToFORMfields is the relative path from this webpage
// to your FORMfields directory.
$relativePathToFORMfields = "FORMfields";
// ---------- CONFIG - END ----------
require_once(dirname(__FILE__) . "/" . $relativePathToFORMfields
. "/FORMfields.php");
$parts = preg_split("'/\\* (BEGIN|END) - SECTION [1-3] \\*/'",
file_get_contents(dirname(__FILE__) . "/" . $relativePathToForm));
// There can be 6 parts or 7 parts depending on the version of FORMgen,
// which may or may not include the "/* BEGIN - SECTION 1 */" comment.
// In each case, the parts are formatted differently
if (sizeof($parts) == 6) {
$section1 = "?>" . $parts[0] . " ?>";
$section2 = $parts[2] . " ?>";
$section3 = $parts[4] . " ?>";
} else if (sizeof($parts) == 7) {
$section1 = $parts[1];
$section2 = $parts[3] . " ?>";
$section3 = $parts[5] . " ?>";
}
// Remove the require_once statements that include FORMfields.php as the
// path may not be correct
$section1 = preg_replace("'require_once\\(.*?FORMfields\\.php\"\\)\\;'", "", $section1);
eval($section1);
?>
<html>
<head>
<?php eval($section2); ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.texta {
font-size: 10px;
background-color: #FFFFFF;
border: 1px solid #666666;
}
-->
</style></head>
<body>
<table width="200" border="0" align="center">
<tr>
<td><table width="200" border="0" align="left">
<tr>
<td><img src="releaseboyz.png" /></td>
</tr>
<tr>
<td><table width="200" border="0" align="left">
<tr>
<td><a href="release.htm"><img src="home.png" border="0" /></a></td>
<td><img src="blank.png" /></td>
<td><img src="models.png" width="100" height="20" border="0" /></td>
<td><img src="blank.png" /></td>
<td><img src="blog.png" width="75" height="25" border="0" /></td>
<td><img src="blank.png" /></td>
<td><a href="contact.htm"><img src="contact.png" width="100" height="20" border="0" /></a></td>
<td><img src="blank.png" /></td>
<td><img src="join.png" width="75" height="25" border="0" /></td>
</tr>
</table>
<p></p></td>
</tr>
</table>
<p> </p>
<p> </p>
<p></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table style="BORDER-COLLAPSE: collapse" height="1174"
cellspacing="0" cellpadding="0" width="750" border="0">
<tbody>
<tr>
<td width="245" colspan="4"><table style="BORDER-COLLAPSE: collapse" cellspacing="0"
cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td width="100%"><img src="becomeamodel.png" /></td>
</tr>
</tbody>
</table> </td>
<td width="245"> </td>
</tr>
<tr>
<td colspan="4"><p>Please note all your info will be keep
strictly confidential and we will not sell any of your info to
anyone ever. Please submit at least 1 picture will your
application.</p>
<p>Please fill in <b>ALL</b> the blanks, this helps your chances of modeling with us.
Please submit at least one picture of your face & be under
30 years of age. The more you are willing to do the more we
will pay you.<br />
<br />
<b>WE ARE ONLY ACCEPTING US
APPLICANTS</b></p>
<p>Will be mailed to<a href="mailto:relfvideo@yahoo.com"> relfvideo@yahoo.com</a></p></td>
<td width="245"> </td>
</tr>
<tr>
<td height="294" colspan="4" rowspan="2"><?php eval($section3); ?>
</td>
<td width="245" height="294"><img src="strip.jpg" width="100" height="600" /></td>
</tr>
<tr>
<td height="294"> </td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
<p></p>
<p></p>
</body>
</html>