Designing solutions through programming - March 21 Lesson Notes

From Computer Science Wiki
Revision as of 13:14, 20 March 2017 by Mr. MacKenty (talk | contribs) (Created page with " __NOTOC__ <table cellspacing="10" style="width:100%;"> <tr> <td style="width:50%; margin:0; margin-top:10px; margin-right:10px; border:1px solid #dfdfdf; padding:0 1em 1em 1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Class plan.png What are we going to learn today?[edit]

  1. Watch this video and ensure your PHPStorm connection settings are correct. Pay attention to detail. https://youtu.be/mm1pnvjgxgU
  1. You have written a web application which allows you to EDIT a user.
  2. The web application allows you to ONLY CHANGE the email address
  3. You mission today is to ADD IN the option to CHANGE a users password.
  4. When you are done, you should be able to users.php and then click edit.
  5. You should then be able to edit either the username and the password OR either the username and the password
  6. When you save your edit, I should see the changes.


                    echo '
                 <fieldset>
                    <legend>Edit user</legend>
                    <form class="form-horizontal" action="update_user.php" method="post">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">Email</label>
                            <div class="col-sm-10">
                                <input type="email" class="form-control" name="email" id="inputEmail3" placeholder="Email" value="'.trim($row['email']).'">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">Password</label>
                            <div class="col-sm-10">
                                <input type="password" class="form-control" id="inputPassword3" name="password" placeholder="New Password">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">Edit user</button>
                            </div>
                        </div>
                    </form>
                </fieldset> 
                    ';

Homework.png What is our homework?[edit]

  1. It is time for you to dedicate at least 30-45 minutes every evening to working on your app.

Target.png How am I being assessed today?[edit]

  1. You get a formative assessment today :-)

Ourstandards.png Standards we are covering today[edit]

Computer1.png As a computer scientist, you have:[edit]

  • Confidence in dealing with complexity
  • Persistence in working with difficult problems
  • Tolerance for ambiguity
  • The ability to deal with open-ended problems
  • The ability to communicate and work with others to achieve a common goal or solution

Credit.png Credits[edit]