Write the php script to output the session contents, PHP Web Programming

Assignment Help:

Question:

(a) A website wishes to use sessions to store the user's name and display a welcome message on all its pages. The user enters his username in a textbox called "username".

(i) Write the PHP script to create the session and store the user's name in that session.

(ii) Write the PHP script to output the session contents to the user only if the session exists and it is not empty.

(b) Write the PHP script that allows you to:

(i) Create a file named "logfile.log" in the same folder.

(ii) Insert the text "Monday 12 Oct" in this file.

(c) A website wishes to store user complaints in a database. The user enters his comments in a textarea called "complaints" and the form uses the POST method.

Write the PHP script to retrieve and clean up the user input before it can be safely stored in the database and explain your code.

(d) Outline the md5() function and provide an example of a situation where it is necessary to use the md5() function.


Related Discussions:- Write the php script to output the session contents

U.s. wordpress developer (mobile-responsive) expert, U.S. WordPress Develop...

U.S. WordPress Developer (Mobile-Responsive) expert Seeking a US WordPress expert (US Only) that can work on projects for our current clients - ad hoc fixes, enhancements and em

We want help to create our responsive site and cms, We want help to create ...

We want help to create our responsive site and CMS We have a PSD which wants to be transformed in a responsive site with an easy CMS. It is a one-page site / PSD

Seeking coding partner, Seeking Coding Partner I am a web designer looki...

Seeking Coding Partner I am a web designer looking for an ongoing partner to code simple websites. The work will be fairly infrequent however paid very well. Desired Skills a

Need help for magazine wordpress website developer, Magazine WordPress Webs...

Magazine WordPress Website Developer We are seeking a talented WordPress developer to turn our mockups into a functioning WordPress website. The website will comprise the fol

Need capable to design any required worpress plugin, Wordpress Web designer...

Wordpress Web designer/Developer with web application development skills Be capable to design any required Worpress plugin, component, modules. We are begin a new USMLE/COMLE

Implementing a multi-tenant configuration in moodle, Moodle integration ...

Moodle integration We have developed a web site with joomla that proposals to our clients different services. One service we are now realising is to integrate our joomla site

Need a expert wordpress programmer and designer, Need a Expert Wordpress Pr...

Need a Expert Wordpress Programmer and Designer We are in search of an ongoing wordpress expert designer and programmer for ongoing tasks. For this project you will make an auth

We need a analyst python programmer, We need a Analyst Programmer Our Es...

We need a Analyst Programmer Our Esteemed as well as Reputable Client is looking for an Analyst Programmer (Python) for their organization. The candidate is mandatory to perform

Php, Ask question #Create a Web page to be used for storing software develo...

Ask question #Create a Web page to be used for storing software development bug reports in a MySQL database. Include fields such as product name and version, type of hardware, oper

Text area, specify a form field where the user can enter large amounts of t...

specify a form field where the user can enter large amounts of text. In most respects, works as an field. It can contain a name and

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd