EDIT: What I have tried is a php thing i found online:
$user = "$email";
$usersubject = "Uw reservering bij Cantrijn";
$userheaders = "From: stagiair@cantrijn.nl \n";
$usermessage = "Bedankt $naam voor uw reservering \n
U heeft gereserveerd: $product . \n
De datum dat u uw reservering ophaalt is: $datumop
De datum om de reservering uiterlijk terug te brengen is: $datumterug
Locatie: $locatie \n";
@mail($user,$usersubject,$usermessage,$userheaders);
I don't know if I need a mailserver for it or a simple program/script will work, but here it goes.
On our site we have reservation form to lend laptops, beamers etc. from the workplace. When they inserted their information and the info we require the order is set and placed in the database.
It would be nice if we could then automatically send them a mail with that info in it, so they can Always look in there to see when they have to bring it back or when they wanted to pick it up.
The html code I have is as follows:
<form method="post">
<h3>Naam:</h3>
<input required name="naam" type="text" placeholder="Voer naam in"><br />
<h3>E-Mail:</h3>
<input required name="email" type="text" placeholder="E-Mailadres"><br />
<h3>Ophaaldatum</h3>
<input required name="datumop" type="date">
<h3>Datum vergadering</h3>
<input required name="datumverg" type="date">
<h3>Datum Terugbrengen</h3>
<input required name="datumterug" type="date">
<h3>Product</h3>
<input type="text" name="product">
<h3>Locatie</h3>
<select name="locatie">
<option value="Gorinchem">Gorinchem</option>
<option value="Utrecht">Utrecht</option>
</select>
<br /><br />
<input type="submit" value="Reserveren">
And with my php i get it out and into the DB. Is there a way to get this into an e-mail, so when the user clicks reserve, they get the info?
I thank you all for your efforts to help me and my not so bright html/php mind.