Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

OOP general programming and PHP jQuery code for model updating

OOP general programming and PHP jQuery code for model updating

OOP general programming and PHP jQuery code for model updating

Question Description

OOP general programming:

In the real world, a man has a mouth. His mouth can do operations like open/close at the man’s

will. Another man cannot force a man to do such operations without the man’s permission. For

example, a doctor can examine his mouth and request him to do such operations and he will

follow the doctor’s requests after confirming the doctor’s identity. For others, he doesn’t want

them to do such operations. Use OOP Designs to make needed classes with methods to meet

those requirements. You can use any language or pseudo- code to write down your results.

Please complete jQuery and PHP code to prepare the inputs for model updating.

In a form, we have three input boxes for users to type in their choices of courses and

submit the form without refreshing the page(i.e using ajax request). Here are the

requirements:

1. User can type in 1, 2 or 3 courses 2. Each choice is case insensitive (also, user can type

anything, in any case or leave it empty) 3. The choices have to contain “calculus”(in any

case, e.g “Calculus” or “CALCULUS”) in one input

box. 4. Because form onsubmit returns false, the form is submitted through ajax by calling

submitForm(),

add your Javascript/jQuery code inside of this function. 5. The PHP on the server side needs

to do the same validation as in Javascript/jQuery to make sure

data is

consistent.

<form action=”/post” onsubmit=”submitForm();return

false;”>

Choice A: <input type=”text” name=”choices[]”/>

Choice B: <input type=”text” name=”choices[]”/>

Choice C: <input type=”text” name=”choices[]”/>

<input type=”submit” value=”Submit”/> </form>

Finish the Javascript/jQuery and PHP code after each “//add your code after this line”

shown below.

JQuer

y:

function submitForm()

{

var $form = $(‘form’); var url

= $(‘form’).attr(‘action’); //

add your code after this line

}

PHP

:

class MyController extends

Controller {

public function post()

{

$inputs = Input::all(); //add

your code after this line

//end of add your

code

if($this->save($inputs)

) {

return [ ‘status’=>’success’ ]; } else {

return [‘status’=>’error’, ‘errorMessage’ => $this->getLastErrorMessage()]; } }

}

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20