Enjoy the course today !
We will structure the initial files and construct the Form with its specific form fields. We will start with using editor Sublime text to create our .php and .css. Then we will link those files and run them in a browser.
We will add code to process the information received from the contact form. We will use php's $_POST array to access the submitted information and will redisplay our form filled with information.
We will make improvements to our code to become more readable and easy to maintain. We will continue exploring and extending our validate() function by removing some of the variables used, replacing them with functional return statements.
We will protect the form from several attacks using token and empty fields. Token protection is to ensure protection against scenario, where we visit an attacker website, specially designed to make request and submit our form, without our knowledge. This type of an attack is also known as cross-site-request-forgery. Empty field technique will stop bots from auto submitting the form.
We will save the data from the form to a text file. Each new data will get appended to the file. This way we can later open the file to see users feedback.
We will add easy client-side validation using HTML5 validation attributes. Validation will be added supporting empty fields, fields of a required legtht as well as basic email check.
You can practice your skills using the source files. Just extract them to an executable folder of your web-server and open them in the browser.
Right now pursuing a computer science PhD in Bulgaria, where usually teach students on interactive web programming.
Independently as well as in teams, am involved in design and development of an user friendly websites.