Advertisement
Advertisement
| 06.22.2008 at 06:49AM PDT, ID: 23505671 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: |
form inside a .php page:
<form name="form" method="post" action="send_contact.php">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td colspan="3" class="style15"><?=$foutweergave?></td>
</tr>
<tr>
<td colspan="3" class="style15"><strong class="style15">Contact Formulier </strong></td>
</tr>
<tr>
<td width="16%" class="style15">Subject</td>
<td width="2%" class="style15">:</td>
<td width="82%" class="style15"><input name="subject" type="text" id="subject" size="40"></td>
</tr>
<tr>
<td class="style15">Omschrijving</td>
<td class="style15">:</td>
<td class="style15"><textarea name="detail" cols="40" rows="4" id="message"></textarea></td>
</tr>
<tr>
<td class="style15">Naam</td>
<td class="style15">:</td>
<td class="style15"><input name="name" type="text" id="name" size="40"></td>
</tr>
<tr>
<td class="style15">Email</td>
<td class="style15">:</td>
<td class="style15"><input name="email" type="text" id="customer_mail" size="40"></td>
</tr>
<tr>
<td class="style15"> </td>
<td class="style15"> </td>
<td class="style15"><input type="submit" name="Submit" value="Verstuur">
<input type="reset" name="Submit2" value="Opnieuw"></td>
</tr>
</table>
</form>
*******************************************************
send_contact.php:
<?php
$mail_from = $HTTP_POST_VARS['email'];
$subject = $HTTP_POST_VARS['subject'];
$message = $HTTP_POST_VARS['detail'];
$header="from: $name <$mail_from>";
$to ='xxx@xxx.com';
$send_contact=mail($to,$subject,$message,$header);
if(is_array($foutje)){
$foutweergave = "<span class=\"style15\"><strong>We hebben de volgende fouten geconstateerd:</strong><ul>";
foreach($foutje as $fout){
$foutweergave .= "<li>".$fout."</li>\n";
}
$foutweergave .= "</ul></span>";
}
if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $mail_from)) {
$foutje[] "<h4>Geen geldig e-mailadres</h4>";
}
elseif ($subject == "") {
$foutje[] "<h4>Geen subject ingevuld</h4>";
}
elseif ($message == "") {
$foutje[] "<h4>Geen omschrijving ingevuld</h4>";
}
elseif ($name == "") {
$foutje[] "<h4>Geen naam ingevuld</h4>";
}
else if($send_contact){
echo "De e-mail is juist verzonden, u kunt binnen 3 dagen een reactie terug verwachten.";
}
else {
echo "Er is een fout opgetreden, probeer het opnieuw.";
}
?>
|