sluit hem nu aub niet af, ben al vanaf 10:00 uur bezig met dit scriptje, heb het op andere forums ook al gevraagt maar niemand weet het. wat ik wel weet dat dit wel werkt op php 4.0.6 maar niet op php 4.2.1
dus dacht nou ik installeer wel ff oude versie, maar dan werkt de rest van me site niet.
dus werp er alsjeblieft ff een blikje op
code:
--------------------------------------------------------------------------------
<?
echo "
<form method='post' action=verzenden2.php>
<dir><table><tr>
<td><font color=\"#1C75A8\" size=\"2\">Name:</td><td align=right><input type='text' name='name' value='' size=\"30\"> </td></tr><tr>
<td><font color=\"#1C75A8\" size=\"2\">Mail:</td><td align=right><input type='text' name='mail' value='' size=\"30\"> </td></tr><tr>
<td><font color=\"#1C75A8\" size=\"2\">Your information:</td><td><textarea cols='30' rows='7' name=bericht></textarea> </td></tr><tr>
<td><font color=\"#1C75A8\" size=\"2\"></td><td align=right><input type=submit value=send> </td></tr><tr valign=top>
<input type='hidden' name='status' value='k'>
</tr>
</table>
</form>";
?>
--------------------------------------------------------------------------------
code:
--------------------------------------------------------------------------------
<?
if($status == "k"){
if (($name) && ($mail) && ($bericht)){
echo "[ <font color=#00ff00><b>Mail is send</b></font>]<br><br>";
$me = "blaat@blaat.nl";
$subject="blabla";
$body=" $bericht ";
mail($me, $subject, $body);
} else {
echo "[ <font color=#ff0000><b>Mail is not send</b> </font>] <font color=#ff0000>, probably because you left a field open <BR>
please make sure you fill in all fields <br>
Thank you<br><br></font> ";
}
}
?>
--------------------------------------------------------------------------------
krijg deze foutmelding
Notice: Undefined variable: status in ***verzenden2.php on line 2
dus dacht nou ik installeer wel ff oude versie, maar dan werkt de rest van me site niet.
dus werp er alsjeblieft ff een blikje op
code:
--------------------------------------------------------------------------------
<?
echo "
<form method='post' action=verzenden2.php>
<dir><table><tr>
<td><font color=\"#1C75A8\" size=\"2\">Name:</td><td align=right><input type='text' name='name' value='' size=\"30\"> </td></tr><tr>
<td><font color=\"#1C75A8\" size=\"2\">Mail:</td><td align=right><input type='text' name='mail' value='' size=\"30\"> </td></tr><tr>
<td><font color=\"#1C75A8\" size=\"2\">Your information:</td><td><textarea cols='30' rows='7' name=bericht></textarea> </td></tr><tr>
<td><font color=\"#1C75A8\" size=\"2\"></td><td align=right><input type=submit value=send> </td></tr><tr valign=top>
<input type='hidden' name='status' value='k'>
</tr>
</table>
</form>";
?>
--------------------------------------------------------------------------------
code:
--------------------------------------------------------------------------------
<?
if($status == "k"){
if (($name) && ($mail) && ($bericht)){
echo "[ <font color=#00ff00><b>Mail is send</b></font>]<br><br>";
$me = "blaat@blaat.nl";
$subject="blabla";
$body=" $bericht ";
mail($me, $subject, $body);
} else {
echo "[ <font color=#ff0000><b>Mail is not send</b> </font>] <font color=#ff0000>, probably because you left a field open <BR>
please make sure you fill in all fields <br>
Thank you<br><br></font> ";
}
}
?>
--------------------------------------------------------------------------------
krijg deze foutmelding
Notice: Undefined variable: status in ***verzenden2.php on line 2