Okay, so heres the problem...
I have a Million Pixel Script (haha, ill wait till you stop laughing. lol) thank you... lol. Anyways, the feedback forum works almost perfectly, the user selects the subject line, enters his/her name, and comments and it sends it out, but theres 3 things that seem to be not work probaly for me.
1) the sends e-mail address should show up but instead only the first part shows, for example, if there e-mail address is jimjohn@hello.com then thats whats ment to show up in the subject line, but instead on jimjohn shows up.
2) now the subject line, it ment to show the subject line they pick, but for reason, it only shows like the first letter of the subject line, so if its general questions, then on G will show up. Now, in the e-mail it self, its ment to show the subject line again, and even there it only shows the first letter of the suject line.
3) finally, if i enter my name, subject line and comments and leave the e-mail address line blank or mistype my e-mail IE. forget the @hello.com then it gives a error, that invalid e-mail like its ment to, what it does is it looks like the page just reloads with the error message (this is for any error, no name, no comments, no subject etc) so that works fine or as it should atleast, only thing is, when it reloads with the error message, the subject lines them self dont show up any more. (Just so we are clear, the subject lines are pre made and put into a drop down box, the users just selects the one he/she likes, and it uses that subject line)
So thats my problem.
Now since the script is a php that calls a html i decided to attach both the php and html to this post, just so you can take a better look.
feedback.php:
ini_set('include_path',".");
include_once('incs/functions.php');
include_once('header.php');
/******************************************************************************************
// If you get troubles with the feedback form that
// users can't send emails, try to delete the asterix (raute)
// from the followin line and see, if it will work then.
// It must be
//
// $from = $CONFIG['email_feedback'];
//
// instead of
// #$from = $CONFIG['email_feedback'];
******************************************************************************************/
#$from = $CONFIG['email_feedback'];
/******************************************************************************************/
$betreff[0] = $_SP[56];
$betreff[1] = $_SP[57];
$betreff[2] = $_SP[58];
$betreff[3] = $_SP[59];
$betreff[4] = $_SP[80];
$betreff[5] = $_SP[81];
$betreff[6] = $_SP[82];
$newpoint = '<img src="'.$designpath.'stop.gif" width="16" height="16" align="absmiddle"> ';
// Voreinstellung per Parameterübergabe
if(isset($_GET['betreff']) && (int)$_GET['betreff']>0 && (int)$_GET['betreff']<count($betreff))
$pflichtbetreff = true;
if(isset($_POST['submit'])) {
if(empty($_POST['email'])) {
$Nachricht .= $newpoint.$_SP[54]."<br>";
} elseif(!empty($_POST['email']) && !eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([a-z0-9-]+\.){1,3}([a-z0-9-]{2,3})$",$_POST['email'])) {
$Nachricht .= $newpoint.$_SP[5]."<br>\n";
}
if(empty($_POST['betreff']) && !$pflichtbetreff) {
$Nachricht .= $newpoint.$_SP[4]."<br>\n";
}
if(empty($_POST['text'])) {
$Nachricht .= $newpoint.$_SP[55]."<br>\n";
}
if(!$Nachricht) {
// Mailinhalt definieren:
$Text = "Feedback:\n";
$Text .= ($_POST['email']) ? "Email: ".strip_tags($_POST['email'])."\n" : "Email: no data\n";
$Text .= "Subject: ".$betreff[1]."\n\n";
$Text .= str_repeat('-',70)."\n".strip_tags($_POST['text'])."\n";
// Alles ok, Mail verschicken.
$absender = ($_POST['email']) ? strip_tags($_POST['email']) : $feedback;
$from = $from ? $from : $absender;
sendmail($CONFIG['email_feedback'],stripslashes($Text),$betreff[(int)$_REQUEST['betreff']],$from,"reply=$absender");
$gesendet = true;
}
}
$TMP = array();
if(!$gesendet) $TMP['%[SENDINFO]%'] = $_SP[49];
else $TMP['%[SENDINFO]%'] = '';
$TMP['%[ERRORINFO]%'] = $Nachricht ? '<br><br>'.$Nachricht.'<br>' : '';
ob_start();
?>
<form method="POST" name="kontakt" action="">
<input type="hidden" value="1" name="submit">
<table border="0">
<tr>
<td valign="middle" align="right" nowrap><font color="#CC0000"><b><?=$_SP[51]?> </font></td>
<td><input type="text" name="email" size="30" value="<?php print htmlentities(stripslashes($_POST['email']));?>" tabindex="2"></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap><font color="#CC0000"><b><?=$_SP[52]?> </font></td>
<td><?PHP
if(!$pflichtbetreff) {
print '<select size="1" name="betreff" tabindex="4">';
while(list($a,$b) = each($betreff))
if($a == (int)$_REQUEST['betreff'])
print '<option value="'.$a.'" selected>'.$b.'</option>';
else
print '<option value="'.$a.'">'.$b.'</option>';
print '</select>';
} else {
print $betreff[(int)$_GET['betreff']];
}
?></td>
</tr>
<tr>
<td valign="top" align="right"><b><?=$_SP[53]?> </font></td>
<td><textarea rows="8" name="text" cols="55" tabindex="5"><?php print htmlentities(strip_tags(stripslashes($_POST['text'])));?></textarea></td>
</tr>
<tr>
<td valign="top" align="right"></td>
<td><input type="submit" value=" <?=$_SP[50]?> " border="0"></td>
</tr></form>
</table>
<?PHP
$TMP['%[FEEDBACKFORM]%'] = !$gesendet ? ob_get_contents() : $_SP[48].'<br>';
ob_end_clean();
print template($LANGDIR.'feedback.htm',$TMP);
include_once('incs/java_focus.php');
include_once('footer.php');
?>
and
feedback.htm
<table class="content">
<tr><td><table width=100%><tr><td class="content" valign="top">
<h1>Feedback</h1>
<p>Your questions and comments are important to us. Please use the
contact form below to send any questions and comments you may have.<br>
Our currant turn around time on questions is approximately 24-36 hours.</p>
%[SENDINFO]%
<font color="red">%[ERRORINFO]%</font>
%[FEEDBACKFORM]%
<br><br>
<font color="#666666">
<b>Notice:</b><br>
</font>
<b>
<font color="#666666">Under the MPSites Inc's. Privacy Policy, your e-mail WILL NOT be shared or sold to anyone.
</td><td valign="top" class="rightcontent">
<!-- PLACE FOR ADS --->
%[ADCODE_VERTICAL]%
<!-------------------->
</td></tr></table>
</td></tr>
</table>
any help at all is truly appreated.
Thanks in advance.
~:MP:~