php voor beginners

Gestart doorDaiman14 reacties230 weergaven

15 berichten · pagina 1 van 1

Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
De eerste stappen met PHP

Wat heb je allemaal nodig? :

een host die php ondersteund indien je die niet hebt kun je mij een pm sturen dan krijg je tijdelijk een accountje.
een php editor is niet vereist want het kan ook met kladblok

je eerste stapjes

de belangrijkste tags van php zijn
is om een script te sluiten

we gaan beginnen met een simpel maar toch bekend script genaamd "Hello World!"

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Hallo Wereld!"[/COLOR][COLOR= #007700];[/COLOR]
?>


dit heeft als output : Hallo Wereld!
maar je kan het ook met een string
een string begint altijd met een $ dollar teken.

[COLOR= #0000BB]<?php
$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Hallo Wereld!"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700];[/COLOR]
?>


dit geeft ook als output : Hallo Wereld!

We gaan nu ook opmerkingen bij het script zetten dit kan je doen met // enkele regel of /* vol typen */
we gaan nu opmerkingen toevoegen aan het Hallo Wereld script met de string

[COLOR= #0000BB]<?php
$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Hallo Wereld!"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// String genaamd tekst[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// dit geeft de tekst weer[/COLOR]
?>


maar een andere variatie

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/* 
dit script is gemaakt door : jouw naam
*/[/COLOR]
[COLOR= #0000BB]$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Hallo Wereld!"[/COLOR][COLOR= #007700];[/COLOR]  
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700];[/COLOR] 
?>


de /* */ formatie wordt meestal gebruikt voor langere opmerkingen in een script

Nu we de echo , string en opmerkingen er op hebben zitten gaan we nu beginnen aan het reken gedeelte

je kunt met php makkelijk rekenen.
we beginnen met een simpele optelsom 1 + 1

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]1[/COLOR] [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
?>


de uitkomst zal dan worden : 2
maar je kan het ook met strings doen

[COLOR= #0000BB]<?php
$nummer1[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$nummer2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]2[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nummer1[/COLOR] [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]$nummer2[/COLOR][COLOR= #007700];[/COLOR]
?>


nu even een lijstje van alle reken tags
+ optellen
- aftrekken
* vermenigvuldigen
/ delen

maar er zijn ook wiskundige tags :
round() afronden
sqrt() wortel

we gaan nu werken met afronden werken
we gaan nu in simpele script maken met een komma getal

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/round"]round[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]3.2[/COLOR] [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]1.41[/COLOR][COLOR= #007700]);[/COLOR]
?>


dit geeft als uitkomst 5

maar het kan natuurlijk ook met een string

[COLOR= #0000BB]<?php
$nummer1[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]3.2[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$nummer2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]1.42[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/round"]round[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nummer1[/COLOR] [COLOR= #007700]+ ([/COLOR][COLOR= #0000BB]$nummer2[/COLOR][COLOR= #007700]);[/COLOR]
?>


we gaan nu ons verdiepen in sqrt aka wortel
de wortel is een wiskundig figuur die ook terug komt in php we gaan nu een script maken waarin de wortel wordt berekend

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/sqrt"]sqrt[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]49[/COLOR][COLOR= #007700]);[/COLOR]
?>


deze geeft de waarde 7
maar deze kan ook met een wortel

[COLOR= #0000BB]<?php
$nummer[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]49[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/sqrt"]sqrt[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nummer[/COLOR][COLOR= #007700]);[/COLOR]
?>


en deze geeft ook de waarde 7

maar wat nou als er een komma getal uitkomt dan kan je het volgende doen

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/round"]round[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/sqrt"]sqrt[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]10[/COLOR][COLOR= #007700]));[/COLOR]
?>


deze zal als waarde 3 geven wat normaal zonder af te ronden 3.16227766017 was geweest
maar natuurlijk deze kan ook met een string

[COLOR= #0000BB]<?php
$nummer[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]10[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/round"]round[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/sqrt"]sqrt[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nummer[/COLOR][COLOR= #007700]));[/COLOR]
?>


allemaal wel leuk dat wortel en afronden maar nu gaan we ons eigen reken machine maken met php
we gaan hierin de functie $_POST gebruiken $_POST is het gene wat in een form wordt ingevoerd wat dan wordt verwerkt

we beginnen met de volgende code

<form action="" method="post" name="form" id="form">
  <p><input name="nr1" type="text" id="nr1">
    + 
    <input name="nr2" type="text" id="nr2">
    <input type="submit" name="Submit" value="Reken">
  </p>

</form>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr1[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr2[/COLOR][COLOR= #007700]];[/COLOR]
?>


deze code zal dan het getal in het veld 1 bij het veld 2 optellen

zo kan je het ook met delen , aftrekken en vermenigvuldigen doen

maar nu gaan we het verbeteren dat je kan selecteren welke functie je wil gebruiken we gaan hier gebruik maken met if , elseif en else
if betekend als
elseif is een soort if maar daarna kunnen er nog meerdere komen met als laatst een else
else betekend anders

we gaan nu eerst met het formulier beginnen en die zal zijn

/ = delen<br />
     - = aftrekken<br />
     + = optellen<br />
     * = vermenigdvuldingen<br />
<form action="" method="post" name="form" id="form">
  <p><input name="nr1" type="text" id="nr1">
-
     <input name="select" type="text" id="select" size="4" maxlength="1">
   -
      </select>
    <input name="nr2" type="text" id="nr2">
    <input type="submit" name="Submit" value="Reken">
  </p>

</form>


de action hoeft niet ingevuld te worden omdat die door je php script worden opgevangen

nu gaan we ook de php code er aan toevoegen

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]select[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]+[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr1[/COLOR][COLOR= #007700]]  +[/COLOR]  [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr2[/COLOR][COLOR= #007700]];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]select[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]/[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr1[/COLOR][COLOR= #007700]][/COLOR]  /  [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr2[/COLOR][COLOR= #007700]];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]select[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]*[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr1[/COLOR][COLOR= #007700]]  *[/COLOR]  [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr2[/COLOR][COLOR= #007700]];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]select[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]-[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr1[/COLOR][COLOR= #007700]]  -[/COLOR]  [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nr2[/COLOR][COLOR= #007700]];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Bestaat niet![/COLOR][COLOR= #007700];
}
}[/COLOR]
?>


voorbeeld
jullie zullen denken waarom
else {
echo Deze bestaat niet!;
}
er staat dit is omdat je met programmas de velden kan veranderen en zo krijgen we errors en nu vangen we dit op door een else om een mooie fout code weer te geven

je hebt nu je eigen rekenmachine gemaakt! pompom
deel 2
in de volgende tut worden natuurlijk weer andere dingen uitgelegd
0
Berichten
1.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Erg leuk daiman!
Kan niet wachten op tut2 aangezien ik hier net uit ben en onder de knie heb.
Kun je alvast vertellen wat je in tut2 gaat doen?

Kenzo

edit: ohja, je laatste voorbeeld werkt niet omdat je er al standaart een + hebt staan dan telt hij de gene die je selecteerd niet meer en dus alles wat je doet wordt met + gedaan.
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@kenzo fixed

in de volgende weet ik nog niet wat ik ga doen ik denk met mail werken en forms werken
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@ daiman
ik zit al te wachten op de volgende tut wink
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@ Daiman; Ik zou de ifjes wel wat beter uitlijnen...
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
De meeste professionele scripters gebruiken:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/*
 * Regel 1
 * Regel 2
 * Regel 3
 */[/COLOR]
?>


ipv:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/*
  Regel 1
  Regel 2
  Regel 3
 */[/COLOR]
?>
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik gebruik ze gewoon niet. emoEn ik ben proffesioneel. biggrin
@ Daimans rekenmachine; Check met ctype_digit() of de inputs getallen zijn. xD
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Milan schreef:
De meeste professionele scripters gebruiken:
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/*
 * Regel 1
 * Regel 2
 * Regel 3
 */[/COLOR]
?>


ipv:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/*
  Regel 1
  Regel 2
  Regel 3
 */[/COLOR]
?>


ieder zijn eigen variatie pompomen deel 2 is bijna af nerd
0
Berichten
3.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Benbenieuwd
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Php voor beginners - Deel 2
Wat gaan we in dit deel leren?
In dit deel gaan we leren hoe je formulieren kunt maken en kijken of het wel ingevuld is

Wat heb je nodig : Een host die php toestaat (heb je die niet pm me dan even dan krijg je tijdelijk een accountje)
En je hebt een php editor nodig maar is niet vereist het kan ook gewoon in kladblok

Waar gaan we mee beginnen? we gaan beginnen met een formulier dat we op ons scherm gaan laten verschijnen

We beginnen eerst met de formulier

<form name="form1" method="post" action="">
  <p>
    Naam : 
    <input name="naam" type="text" id="naam">
</p>
  <p>
    Leeftijd : 
    <input name="leeftijd" type="text" id="leeftijd">
</p>
  <p>
    <input type="submit" name="Submit" value="Laat zien!">
  </p>
</form>


maar nu gebeurd er nog niks we gaan nu de volgende php code toevoegen

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Mijn naam is : [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Mijn leeftijd is :[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]leeftijd[/COLOR][COLOR= #007700]];[/COLOR]
?>


je hebt nu een formulier gemaakt die je eigen naam en leeftijd zal weergeven
maar we willen natuurlijk dat het wel ingevuld moet worden dat het dus niet leeg mag zijn
daarvoor gaan we de oude php code vervangen door

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/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]naam[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Het veld naam heb je niet ingevoerd!<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Mijn naam is : [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/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]naam[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt het veld leeftijd niet ingevuld![/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<br />Mijn leeftijd is :[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]leeftijd[/COLOR][COLOR= #007700]];
}
}[/COLOR]
?>


maar nu is het zo dat je gewoon letters bij de leeftijd kan invullen en dat willen we natuurlijk niet hebben we gaan nu de vorige code vervangen door de volgende

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/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]naam[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Het veld naam heb je niet ingevoerd!<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Mijn naam is : [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/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]naam[/COLOR][COLOR= #007700]])){[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt het veld leeftijd niet ingevuld of het is geen nummer![/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]leeftijd[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<br />Mijn leeftijd is :[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]leeftijd[/COLOR][COLOR= #007700]];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<br />dit is geen cijfer![/COLOR][COLOR= #007700];
}
}
}[/COLOR]
?>


nu heb je je eigen formulier gemaakt die je naam en leeftijd toont

maar we willen natuurlijk dat we invoeren op je mail gaat ontvangen hiervoor gaan we het element mail() voor gebruiken

we beginnen natuurlijk weer met een formuliertje we gebruiken nu de volgende

<form name="form1" method="post" action="">
  <p>
    Naam : 
    <input name="naam" type="text" id="naam">
</p>
  <p>
    Email : 
      <input name="email" type="text" id="email">
</p>
  <p>Opmerkingen</p>
  <p>
    <textarea name="opmerkingen" id="opmerkingen"></textarea>
  </p>
  <p>
    <input type="submit" name="Submit" value="Verzend!">
  </p>
</form>


en we moeten daarna de volgende code gaan gebruiken
$naar = jouwmail@website.nl; //naar welk email adres het gestuurd moet worden
$van = noreply@website.nl; // meegezonden email adres
$ond = onderwerp; // Onderwerp
$headers = "From: $van";
$tekst = "De ingevoerde naam is : n".$_POST[naam] ." Met als email adres : n".$_POST[email]." En heeft als opmerkingen : n".$_POST[opmerkingen];
mail($naar, $ond, $tekst, $headers);
?>

maar we willen natuurlijk eerst checken of alles wel ingevuld anders zal je mailbox snel vollopen
we vervangen de oude code in

[COLOR= #0000BB]<?php
$naar[/COLOR]      [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]jouwmail@website.nl[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//naar welk email adres het gestuurd moet worden[/COLOR]
[COLOR= #0000BB]$van[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]noreply@website.nl[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// meegezonden email adres[/COLOR]
[COLOR= #0000BB]$ond[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]onderwerp[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"From: $van"[/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]naam[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]veld naam is niet ingevuld![/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/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[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Het veld email is niet ingevuld[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]het veld opmerkingen is niet ingevuld![/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"De ingevoerde naam is : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]"n Met als email adres : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"n En heeft als opmerkingen : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naar[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ond[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Verzonden![/COLOR][COLOR= #007700];
}[/COLOR]
?>


maar we wille alles natuurlijk zo veilig mogelijk houden en de ip van de invuller meesturen dan gaan we de oude weer vervangen in

[COLOR= #0000BB]<?php
$naar[/COLOR]      [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]jouwmail@website.nl[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//naar welk email adres het gestuurd moet worden[/COLOR]
[COLOR= #0000BB]$van[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]noreply@website.nl[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// meegezonden email adres[/COLOR]
[COLOR= #0000BB]$ond[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]onderwerp[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"From: $van"[/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]naam[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]veld naam is niet ingevuld![/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/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[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Het veld email is niet ingevuld[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]het veld opmerkingen is niet ingevuld![/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"De ingevoerde naam is : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]"n Met als email adres : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"n En heeft als opmerkingen : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"n en het ip is : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naar[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ond[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Verzonden![/COLOR][COLOR= #007700];
}[/COLOR]
?>


nu ben je klaar met je eigen formulier !
in een van de volgende delen wordt een anti spam script uitgelegd

we gaan nu weer iets met formulieren doen maar gaan het nu opslaan in een .txt bestand
we gebruiken van de volgende code de form en de php maar beetje aangepast het is nu dit geworden

<form name="form1" method="post" action="">
  <p>
    Naam :
    <input name="naam" type="text" id="naam">
</p>
  <p>
    Email :
      <input name="email" type="text" id="email">
</p>
  <p>Opmerkingen</p>
  <p>
    <textarea name="opmerkingen" id="opmerkingen"></textarea>
  </p>
  <p>
    <input type="submit" name="Submit" value="Verzend!">
  </p>
</form>

[COLOR= #0000BB]<?php
$file[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"bestandsnaam.txt"[/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]naam[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]veld naam is niet ingevuld![/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/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[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Het veld email is niet ingevuld[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]het veld opmerkingen is niet ingevuld![/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"De ingevoerde naam is : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]"n Met als email adres : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"n En heeft als opmerkingen : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"n en het ip is : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"nn"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Verzonden![/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$fopen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fopen"]fopen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$file[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"a"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fwrite"]fwrite[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fopen[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fopen[/COLOR][COLOR= #007700]);
}[/COLOR]
?>


je moet wel de bestandsnaam van $file de rechten 777 geven anders kan er niet in geschreven worden
je kunt de invoeren opvragen met de code

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]bestandsnaam.txt[/COLOR][COLOR= #007700];[/COLOR]
?>


nu we met schrijven in txt achter de rug hebben willen we nu ook loggen de ips en tijden van de bezoeken van de bezoekers
we gaan hier gebruik maken van date() en time()
we gebruiken nu de volgende code

[COLOR= #0000BB]<?php
$file[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"bestandsnaam.txt"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"datum + tijd : "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"d-m-Y H:i:s"[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]()).[/COLOR][COLOR= #DD0000]" ip :"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"nn"[/COLOR][COLOR= #007700];[/COLOR] 
[COLOR= #0000BB]$fopen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fopen"]fopen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$file[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"a"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fwrite"]fwrite[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fopen[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fopen[/COLOR][COLOR= #007700]);[/COLOR]
?>


maar als je een hosting pakket bij een buitenlandse provider en server hebt dan kan het zijn dat de tijd niet klopt we gaan hiervoor iets toevoegen aan de code namelijk ons eigen timezone we gebruiken hiervoor : date_default_timezone_set(Europe/Amsterdam);
dus de code wordt nu

[COLOR= #0000BB]<?php[/COLOR]
date_default_timezone_set[COLOR= #007700]([/COLOR][COLOR= #DD0000]Europe/Amsterdam[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$file[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"bestandsnaam.txt"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"datum + tijd : "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"d-m-Y H:i:s"[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]()).[/COLOR][COLOR= #DD0000]" ip :"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"nn"[/COLOR][COLOR= #007700];[/COLOR] 
[COLOR= #0000BB]$fopen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fopen"]fopen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$file[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"a"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fwrite"]fwrite[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fopen[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fopen[/COLOR][COLOR= #007700]);[/COLOR]
?>


je kan dit bestand bijvoorbeeld noemen logger.php
en op de pagina waar je het gelogd wilt hebben doe je boven aan je site

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]logger.php[/COLOR][COLOR= #007700];[/COLOR]
?>


maar je kan natuurlijk ook de logs weer bekijken door

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]bestandsnaam.txt[/COLOR][COLOR= #007700];[/COLOR]
?>


te gebruiken

dit was deel 2
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Goed gedaan.

Ik hoop dat je nu een tut maakt met mysql wink
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Best nice tut, alleen leer de mensen wel gelijk om hun knutsels uit te lijnen.
Dus niet zo:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets_anders[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$a[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$b[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]ROFLMAO[/COLOR][COLOR= #007700];
}
}[/COLOR]
?>


maar:

[COLOR= #0000BB]<?php[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets_anders[/COLOR][COLOR= #007700])
    {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$a[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$b[/COLOR][COLOR= #007700])
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]ROFLMAO[/COLOR][COLOR= #007700];
        }
    }[/COLOR]
?>


Dat ziet er een stuk netter uit
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Luukvdo schreef:
Best nice tut, alleen leer de mensen wel gelijk om hun knutsels uit te lijnen.
Dus niet zo:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets_anders[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$a[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$b[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]ROFLMAO[/COLOR][COLOR= #007700];
}
}[/COLOR]
?>


maar:

[COLOR= #0000BB]<?php[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets_anders[/COLOR][COLOR= #007700])
    {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$a[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$b[/COLOR][COLOR= #007700])
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]ROFLMAO[/COLOR][COLOR= #007700];
        }
    }[/COLOR]
?>


Dat ziet er een stuk netter uit

ok ik zal er voor de volgende tuts op letten
ik lijn haast nooit uit vind het meer werk emo
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het is iets meer werk inderdaad, maar je code is wel veel overzichtelijker
0
Miel

Lid

Berichten
4.462
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Erik schreef:
Ik gebruik ze gewoon niet. emo
En ik ben proffesioneel. biggrin
Hahayummie
Tutorial valt me vies tegen.. Je leert het mensen gewoon verkeerd aan.confusedOveral dubbele quotes ect..
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren