I want a "ticket-system" on my homepage with fields which are required to send this ticket. So far I've done the "layout" with the forms. My problem: I don't know how to do those fields which are required and sending this ticket to my email address.
(Some words are german (because I'm german), but I think you will probably understand it)
support-ticket.php:
<div id="kontaktformular" style="width: 500px" align="left"> <form action="kontakt-ticket.php" method="get"> <p><b>Name *</b></p> <center><input name="name" size="67"></center> <p><b>E-Mail *</b></p> <center><input name="email" size="67"></center> <p><b>Betreff *</b></p> <select name="betreff" size="1"> <option>Hilfe</option> <option>Shop</option> <option>Spieler melden</option> <option>Bug melden</option> <option>Entbannen</option> </select> <p><b>Nachricht *</b></p> <textarea name="text" cols="50" rows="20" size="70"></textarea><br /> <input name="submit" type="submit" value="Absenden"> </form> <p><i>*Diese Felder sind Pflichtfelder und müssen ausgefüllt werden! /* All fields are required! (: */</i></p> </div>kontakt-ticket.php:
<- Here is my problem, don't really know how to do! (bad php knowlege ) ->
edit: If a field, which is required, isn't filled out, there should be an "error output" like: "Please type your email here" or something like this and the text in the other forms are still there - is this possible?
SicX