Mijn style.css:Url: Klik
Ik wil dat dat blok bij linkpartners over heel de pagina komt zegmaar, nu zit ie links. Ik wil hem van links tot rechts hebben.
Ik faal in CSS dus vandaar dit topic
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
?>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/* Stel de ontvanger(s) in, onderscheid wordt gemaakt dmv de komma (,) */[/COLOR]
[COLOR= #0000BB]$ontvangers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"azdin@hotmail.nl"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Naar welk(e) emailadres(sen) moet het formulier worden verstuurd?
/* Stel de minimale lengte van de betreffende variabelen in. Vul een 0 in als u de controle wilt uitschakelen.*/[/COLOR]
[COLOR= #0000BB]$settings_naam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Uit hoeveel tekens moet de ingevulde naam minimaal bestaan?[/COLOR]
[COLOR= #0000BB]$settings_email[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Uit hoeveel tekens moet het ingevulde emailadres minimaal bestaan?[/COLOR]
[COLOR= #0000BB]$settings_onderwerp[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Uit hoeveel tekens moet het ingevulde onderwerp minimaal bestaan?[/COLOR]
[COLOR= #0000BB]$settings_bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Uit hoeveel tekens moet het ingevulde bericht minimaal bestaan?
/* Stel in of er gecontroleerd moet worden op naam, emailadres e.d. true = aan en false = uit. */[/COLOR]
[COLOR= #0000BB]$settings_check_naam[/COLOR] [COLOR= #007700]=[/COLOR] true[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Controleren of er een naam is ingevuld?[/COLOR]
[COLOR= #0000BB]$settings_check_email[/COLOR] [COLOR= #007700]=[/COLOR] true[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Controleren of er een emailadres is ingevuld?[/COLOR]
[COLOR= #0000BB]$settings_check_onderwerp[/COLOR] [COLOR= #007700]=[/COLOR] true[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Controleren of er een onderwerp is ingevuld?[/COLOR]
[COLOR= #0000BB]$settings_check_bericht[/COLOR] [COLOR= #007700]=[/COLOR] true[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Controleren of er een bericht is ingevuld? (Ik adviseer u deze op true te houden, anders ontvangt u lege emails)[/COLOR]
[COLOR= #0000BB]$settings_check_captcha[/COLOR] [COLOR= #007700]=[/COLOR] true[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Uw formulier beveiligen tegen spammers? (Ook hier adviseer ik u om true te laten staan)
/* Hier begint het echte werk, hier HOEFT niks veranderd te worden. */[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR] [COLOR= #FF8000]// Als er geen formulier is verzonden het formulier laten zien.[/COLOR]
?>
<form action="<?=$_SERVER[PHP_SELF];?>" method="post">
<table>
<tr>
<td>Je naam*:</td>
</tr>
<tr>
<td><input type="text" name="naam_ontvanger" style="width:150px;" /></td>
</tr>
<tr>
<td>Je e-mailadres*:</td>
</tr>
<tr>
<td><input type="text" name="email_ontvanger" style="width:150px;" /></td>
</tr>
<tr>
<td>Onderwerp*:</td>
</tr>
<tr>
<td><input type="text" name="onderwerp" style="width:150px;" /></td>
</tr>
<tr>
<td>Je bericht*:</td>
</tr>
<tr>
<td><textarea name="bericht" cols="50" rows="6"></textarea></td>
</tr>
<tr>
<td>Beveiligingscode overtypen*:</td>
</tr>
<tr>
<td><img src="/captcha.php" alt="" /></td>
</tr>
<tr>
<td><input type="text" title="Typ de beveiligingscode over a.u.b. Hierdoor voorkomen we spam." name="beveiligingscode" style="width:150px;" </td>
</tr>
<tr>
<td><input type="submit" value="Versturen" style="width:150px;" </td>
</tr>
<tr>
<td>Velden met een * zijn verplicht.</td>
</tr>
</table>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]/* Email controle, controleert op de verplichte punt (.) en het verplichte @ teken. */[/COLOR]
[COLOR= #007700]function[/COLOR] email[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$email[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/return"]return[/URL] true[COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/return"]return[/URL] false[COLOR= #007700];
}
}[/COLOR]
[COLOR= #FF8000]/* Controleren op legge sessie:*/
if(empty($_SESSION[security_code])){
$_SESSION[security_code] = "GEENCAPTCHA INGESTELD.";
}
/* Controleren op fouten */[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam_ontvanger[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$settings_check_naam[/COLOR] [COLOR= #007700]==[/COLOR] true[COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- U bent vergeten uw naam in te vullen.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email_ontvanger[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$settings_check_email[/COLOR] [COLOR= #007700]==[/COLOR] true[COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- U bent vergeten uw emailadres in te vullen.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]onderwerp[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$settings_check_onderwerp[/COLOR] [COLOR= #007700]==[/COLOR] true[COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- U bent vergeten een onderwerp in te vullen.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$settings_check_bericht[/COLOR] [COLOR= #007700]==[/COLOR] true[COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- U bent vergeten een bericht in te vullen.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]beveiligingscode[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$settings_check_captcha[/COLOR] [COLOR= #007700]==[/COLOR] true[COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- U bent vergeten de beveiligingscode over te nemen.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]security_code[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]beveiligingscode[/COLOR][COLOR= #007700]] &&[/COLOR] [COLOR= #0000BB]$settings_check_captcha[/COLOR] [COLOR= #007700]==[/COLOR] true[COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- U heeft de beveiligingscode onjuist overgenomen.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email_ontvanger[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]email[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]) ==[/COLOR] false [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$settings_check_email[/COLOR] [COLOR= #007700]==[/COLOR] true[COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- U heeft een ongeldig email-adres ingevuld.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam_ontvanger[/COLOR][COLOR= #007700]]) <=[/COLOR] [COLOR= #0000BB]$settings_bericht[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$settings_bericht[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- Uw naam bevat te weinig tekens.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email_ontvanger[/COLOR][COLOR= #007700]]) <=[/COLOR] [COLOR= #0000BB]$settings_bericht[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$settings_bericht[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- Uw email-adres bevat te weinig tekens.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]onderwerp[/COLOR][COLOR= #007700]]) <=[/COLOR] [COLOR= #0000BB]$settings_bericht[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$settings_bericht[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- Uw onderwerp bevat te weinig tekens.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]) <=[/COLOR] [COLOR= #0000BB]$settings_bericht[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$settings_bericht[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"- Uw bericht bevat te weinig tekens.<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$error[/COLOR][COLOR= #007700]){[/COLOR] [COLOR= #FF8000]// Als er fouten zijn...[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"De volgende fouten hebben zich voorgedaan:<br />"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$error[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR] [COLOR= #FF8000]// Er is niks fout gegaan, er kan worden ge-maild.
/* Variabelen instellen, met een anti-HTML functie: */[/COLOR]
[COLOR= #0000BB]$hostname[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/gethostbyaddr"]gethostbyaddr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]]);[/COLOR] [COLOR= #FF8000]// Provider ophalen...[/COLOR]
[COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam_ontvanger[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email_ontvanger[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$onderwerp[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Contactformulier: "[/COLOR][COLOR= #007700].[/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]onderwerp[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"
Hallo, <br /><br />
U heeft een bericht ontvangen via ons contactformulier. <strong>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</strong> heeft u een bericht gestuurd.
<br /><br />
Dit was zijn/haar bericht:
<br /><br />
<strong>
<i>
"[/COLOR][COLOR= #007700].[/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"
</i>
</strong>
<br /><br />
Alle gegevens over de verzender:<br /><br />
<table width=100%>
<tr>
<td>Naam:</td>
<td>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</td>
</tr>
<tr>
<td>Emailadres:</td>
<td>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</td>
</tr>
<tr>
<td>IP adres:</td>
<td><a href=http://www.db.ripe.net/whois?form_type=simple&full_query_string=&searchtext="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"&do_search=Search>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</a></td>
</tr>
<tr>
<td>User agent:</td>
<td>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]HTTP_USER_AGENT[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</td>
</tr>
<tr>
<td>Provider:</td>
<td>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$hostname[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</td>
</tr>
</table>
"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"From: Contactformulier Azdin.NL <info@azdin.nl>
"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Cc: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ontvangers[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #DD0000]"
"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Content-type: text/html"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ontvangers[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$onderwerp[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Hartelijk dank voor het invullen van dit formulier, het bericht is verstuurd."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/session_destroy"]session_destroy[/URL][COLOR= #007700]();
}
}[/COLOR]
?>
<br />Ik wil dat dat blok bij linkpartners over heel de pagina komt zegmaar, nu zit ie links. Ik wil hem van links tot rechts hebben.
Ik faal in CSS dus vandaar dit topic

