Question: Considerations for Messenger There are two web pages StartPage and MainPage . Two web pages are generated using view_startpage.php and other PHP programs. In this

  1. Considerations for Messenger
    • There are two web pages StartPage and MainPage. Two web pages are generated using view_startpage.php and other PHP programs.

Considerations for Messenger There are two web

  • In this exercise, all user inputs from view_startpage.php will be submitted to controller.php, using the POST method.
  • When the user inputs come to controller.php, another input should come to distinguish from which page the inputs come from.

  • The page value will be used to distinguish the two web pages.

StartPage and MainPage.

  • Both of the two web pages send data with another command value.
    • The command values sent from the start page are SignUp, LogIn,
  • Additional values may be submitted.
  • Summary: There are two common input values page, and command

  • b) Two modal windows in StartPage
  • SignUp button for SignUp modal window, and LogIn button for LogIn modal window

Considerations for Messenger There are two web

  • When the Cancel button is clicked, the modal window should be removed together with the blanket.
  • When the Reset button is clicked, the input values should be reset.
  • When the Submit button is clicked, the following user inputs should be submitted to controller.php using the POST method.

button

page

command

username

password

email

SignUp

StartPage

SignUp

user value

user value

user value

LogIn

StartPage

LogIn

user value

user value

N/A

  • page and command values should be hidden from the user. Those values should be hard coded.
  • The user will enter username, password, and email for SignUp.

Coding used:

Assignment 2

Hear what people are talking about

Join the conversation

See whats happening in the world

Join TRU CS Messenger

About Help center Terms of service ...

Create your account

Log in to TRU CS Messenger

document.getElementById("button1").onclick=function () { document.getElementById("create").style.display="block"; } document.getElementById("button2").onclick=function () { document.getElementById("log").style.display="block"; }

document.getElementsByClassName("blanket").onclick=function () { document.getElementById("create").style.display="none"; document.getElementById("log").style.display="none"; }

X Come Desktop/COMP3540/Winter2021.9.205m/wwyout.me https://cs.tru.ca/-mlee/comp3540/Soft. * THOMPSON OTRU UNIVERSITY THOMPSON RIVERS UNIVERSITY Friends See what's happening in the world Messages Hear what people are talking about Join the conversation Unread Messages Join TRUCS Meg From Message Sign up Log in Read Messages From Message abc A lot of snow Abellum THOMPSON OneTRU RIVERS UNIVERSITY ppening in the Create your account Username: johnlucpicard Hear what people are Join the conversation Password: Email: inicard@truca Reset Cancel Submit About Help center Terms of service BI > G + T c https://cs.tru.ca/-mlee/comp3540/Winter 2021/9.%20Seminars/w3_view_startpage... THOMPSON OneTRU RIVERS UNIVERSITY Log in to TRU CS Messenger ppening in the Hear what people are Username: johnlucpicard Join the conversation Password: .. Reset Cancel Submit About Helpcenter Terms of service X Come Desktop/COMP3540/Winter2021.9.205m/wwyout.me https://cs.tru.ca/-mlee/comp3540/Soft. * THOMPSON OTRU UNIVERSITY THOMPSON RIVERS UNIVERSITY Friends See what's happening in the world Messages Hear what people are talking about Join the conversation Unread Messages Join TRUCS Meg From Message Sign up Log in Read Messages From Message abc A lot of snow Abellum THOMPSON OneTRU RIVERS UNIVERSITY ppening in the Create your account Username: johnlucpicard Hear what people are Join the conversation Password: Email: inicard@truca Reset Cancel Submit About Help center Terms of service BI > G + T c https://cs.tru.ca/-mlee/comp3540/Winter 2021/9.%20Seminars/w3_view_startpage... THOMPSON OneTRU RIVERS UNIVERSITY Log in to TRU CS Messenger ppening in the Hear what people are Username: johnlucpicard Join the conversation Password: .. Reset Cancel Submit About Helpcenter Terms of service

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!