You can move this tpoic, if i put it wrong place.
Well, i have a gib problem with 500 Internal Server Error. It says this:
CODE
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@maplefinland.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@maplefinland.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Okay, now i'll give my codes on my webisite:
First, my HTML Code:
CODE
<center><form action="event.php">
<b>Hahmosi nimi:</b><br>
<INPUT type="text" name="nimi" STYLE="color: #000000; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #D3E8F3;" size="17" maxlength="30"><br><br>
<b>Sähköpostiosoitteesi:</b><br>
<INPUT type="text" name="email" STYLE="color: #000000; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #D3E8F3;" size="17" maxlength="30"><br><br>
<b>Linkki videoosi YouTubessa:</b><br>
<INPUT type="text" name="video" STYLE="color: #000000; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #D3E8F3;" size="17" maxlength="30"><br><br>
<input type="submit" value="ROCK ON!"></form></center>
<b>Hahmosi nimi:</b><br>
<INPUT type="text" name="nimi" STYLE="color: #000000; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #D3E8F3;" size="17" maxlength="30"><br><br>
<b>Sähköpostiosoitteesi:</b><br>
<INPUT type="text" name="email" STYLE="color: #000000; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #D3E8F3;" size="17" maxlength="30"><br><br>
<b>Linkki videoosi YouTubessa:</b><br>
<INPUT type="text" name="video" STYLE="color: #000000; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #D3E8F3;" size="17" maxlength="30"><br><br>
<input type="submit" value="ROCK ON!"></form></center>
Then my "event.php" -Code:
CODE
<?php
$to_addr = "MY E-MAIL";
$subject = "Videokilpailu";
$msg = "Kotisivujen kautta on lähetetty seuraava videokilpailu.\n";
$msg .="\n";
$msg .="Ilmoittajan nimi: " . $_REQUEST["nimi"] ."\n";
$msg .=" e-mail: " . $_REQUEST["email"] . "\n";
$msg .=" YouTube: " . $_REQUEST["video"] . "\n";
$msg .="\n";
$msg .="------------------------------------------------------------------------------\n";
$msg .="Lähettäjän IP-osoite: " . $_SERVER["REMOTE_ADDR"] . "\n";
$msg .="Selain: " . $_SERVER["HTTP_USER_AGENT"] . "\n";
if (mail($to_addr, $subject, $msg)) {
header ("Location: viestix.html");
} else {
# Tähän ilmoitukset, jossa kerrotaan ettei onnistunut
}
?>
$to_addr = "MY E-MAIL";
$subject = "Videokilpailu";
$msg = "Kotisivujen kautta on lähetetty seuraava videokilpailu.\n";
$msg .="\n";
$msg .="Ilmoittajan nimi: " . $_REQUEST["nimi"] ."\n";
$msg .=" e-mail: " . $_REQUEST["email"] . "\n";
$msg .=" YouTube: " . $_REQUEST["video"] . "\n";
$msg .="\n";
$msg .="------------------------------------------------------------------------------\n";
$msg .="Lähettäjän IP-osoite: " . $_SERVER["REMOTE_ADDR"] . "\n";
$msg .="Selain: " . $_SERVER["HTTP_USER_AGENT"] . "\n";
if (mail($to_addr, $subject, $msg)) {
header ("Location: viestix.html");
} else {
# Tähän ilmoitukset, jossa kerrotaan ettei onnistunut
}
?>
Hope i get help fast, this is so important. And sorry for those texts in the codes, it's finnish
Thank you!