here's just one example: (all the php pages show up blank, not just this one)..
http://www.su4u.com/weeklyemail.php
here's what it is supposed to look like:
and here's the script:
- Code: Select all
<?php
require_once 'global.php';
require_once 'html_form.php';
$weeklyemailform = new Form(weeklyemailform,uri_self());
$weeklyemailform->addText('email', 'Email', '', 20, 100);
$weeklyemailform->addSubmit('Sign Me Up');
$weeklyemailform->addRule('email', 'required', 'Your email is required.');
$weeklyemailform->addRule('email', 'email', 'Please enter a valid email.');
$weeklyemailform->addFilter('_ALL_', 'db');
$signupcomplete = false;
if ($weeklyemailform->valid() ) {
$processed = $weeklyemailform->getProcessed();
$email = strtolower($processed['email']);
$sql = "SELECT id from members where email = $email";
$result = mysql_query($sql);
$id = @mysql_result($result,0,0);
if ($id == null) {
$ismember = false;
} else {
$ismember = true;
}
if ($ismember) {
$sql = "UPDATE members SET weekly_email = 'y' WHERE id = $id";
mysql_query($sql);
}
$sql = "INSERT into weeklyemail set email = $email";
mysql_query($sql);
$signupcomplete = true;
}
?>
<HTML>
<head>
<TITLE>
SU4U - Weekly Email
</TITLE>
<link rel="stylesheet" type="text/css" href="style.css">
<script language="javascript" type="text/javascript">
function expand() {
for (i=0; i<180; i++) {
window.resizeBy(0, 1);
}
}
</script>
</head>
<BODY marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" bgcolor="#FFFFFF" style="margin:0px 0px 0px 0px;">
<table width="340" height="78" valign="top" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="340" height="60" valign="top" style="padding:10px 10px 0px 10px;"><a href="#" onclick="expand();"><center><IMG SRC="images/popup.gif" width="260" height="60" border="0' alt="weekly email" style="margin:0in 0in 0in 0in;"></center></a></td>
</tr>
<tr>
<td class="smtext" width="340" height="18" valign="top"><center><a href="#" onclick="expand();" style="color:#6699CC;"><font style="color:#000000;">Weekly E-Mail&-&</font>Sign Up Today</a></center></td>
</tr>
<tr>
<td width="340" height="160" valign="bottom"><center><table width="260" cellpadding="10" cellspacing="0" border="0"><tr><td>
<?
if ($signupcomplete) {
print '<center>
<p>
Sign-Up Complete
</p>
<table cellpadding="4" cellspacing="0">
<tr>
<td id="yellowborder" class="smtext">
<a href="javascript:window.close();">OK</a>
</td>
</tr>
</table>
</p>
</center>';
} else {
$weeklyemailform->display();
}
?>
</td></tr></table></center></td>
</tr>
</table>
</BODY>
</html>
is this an issue with an include_path or something? how come i see the blank pages and not even an error?


